Microchip® Advanced Software Framework

ipolite_callbacks Struct Reference

A structure with callback functions for an ipolite connection.

This structure holds a list of callback functions used a an ipolite connection. The functions are called when events occur on the connection.

#include <ipolite.h>

Data Fields

void(* dropped )(struct ipolite_conn *c)
 Called when a packet is dropped because a packet was heard from a neighbor. More...
 
void(* recv )(struct ipolite_conn *c, const linkaddr_t *from)
 Called when a packet is received on the connection. More...
 
void(* sent )(struct ipolite_conn *c)
 Called when a packet is sent on the connection. More...
 

void(* ipolite_callbacks::dropped)(struct ipolite_conn *c)

Called when a packet is dropped because a packet was heard from a neighbor.

void(* ipolite_callbacks::recv)(struct ipolite_conn *c, const linkaddr_t *from)

Called when a packet is received on the connection.

void(* ipolite_callbacks::sent)(struct ipolite_conn *c)

Called when a packet is sent on the connection.