Contiki 3.x
Data Fields
mesh_callbacks Struct Reference

Mesh callbacks. More...

#include <core/net/rime/mesh.h>

Data Fields

void(* recv )(struct mesh_conn *c, const linkaddr_t *from, uint8_t hops)
 Called when a packet is received. More...
 
void(* sent )(struct mesh_conn *c)
 Called when a packet, sent with mesh_send(), is actually transmitted. More...
 
void(* timedout )(struct mesh_conn *c)
 Called when a packet, sent with mesh_send(), times out and is dropped. More...
 

Detailed Description

Mesh callbacks.

Examples:
example-mesh.c.

Definition at line 73 of file mesh.h.

Field Documentation

void(* mesh_callbacks::recv)(struct mesh_conn *c, const linkaddr_t *from, uint8_t hops)

Called when a packet is received.

Examples:
example-mesh.c.

Definition at line 75 of file mesh.h.

void(* mesh_callbacks::sent)(struct mesh_conn *c)

Called when a packet, sent with mesh_send(), is actually transmitted.

Examples:
example-mesh.c.

Definition at line 77 of file mesh.h.

void(* mesh_callbacks::timedout)(struct mesh_conn *c)

Called when a packet, sent with mesh_send(), times out and is dropped.

Examples:
example-mesh.c.

Definition at line 79 of file mesh.h.