A structure with callback functions for a polite connection.
This structure holds a list of callback functions used a a polite connection. The functions are called when events occur on the connection.
#include <polite.h>
Data Fields | |
void(* | dropped )(struct polite_conn *c) |
Called when a packet is dropped because a packet was heard from a neighbor. More... | |
void(* | recv )(struct polite_conn *c) |
Called when a packet is received on the connection. More... | |
void(* | sent )(struct polite_conn *c) |
Called when a packet is sent on the connection. More... | |
void(* polite_callbacks::dropped)(struct polite_conn *c) |
Called when a packet is dropped because a packet was heard from a neighbor.
void(* polite_callbacks::recv)(struct polite_conn *c) |
Called when a packet is received on the connection.
void(* polite_callbacks::sent)(struct polite_conn *c) |
Called when a packet is sent on the connection.