52 recv_from_broadcast(
struct broadcast_conn *broadcast,
const linkaddr_t *sender)
56 if(c->u->recv !=
NULL) {
65 const struct stbroadcast_callbacks *u)
84 queuebuf_to_packetbuf(c->buf);
87 if(c->u->sent !=
NULL) {
102 queuebuf_free(c->buf);
104 c->buf = queuebuf_new_from_packetbuf();
void broadcast_close(struct broadcast_conn *c)
Close a broadcast connection.
#define NULL
The null pointer.
Header file for the Rime stack
Header file for the Rime module Stubborn Anonymous BroadCast (stbroadcast)
void stbroadcast_cancel(struct stbroadcast_conn *c)
Cancel the current stubborn message.
void ctimer_set(struct ctimer *c, clock_time_t t, void(*f)(void *), void *ptr)
Set a callback timer.
Callback structure for broadcast.
void ctimer_reset(struct ctimer *c)
Reset a callback timer with the same interval as was previously set.
void stbroadcast_open(struct stbroadcast_conn *c, uint16_t channel, const struct stbroadcast_callbacks *u)
Set up a stbroadcast connection.
int broadcast_send(struct broadcast_conn *c)
Send an identified best-effort broadcast packet.
void stbroadcast_set_timer(struct stbroadcast_conn *c, clock_time_t t)
Set the retransmission time of the current stubborn message.
void broadcast_open(struct broadcast_conn *c, uint16_t channel, const struct broadcast_callbacks *u)
Set up an identified best-effort broadcast connection.
void ctimer_stop(struct ctimer *c)
Stop a pending callback timer.
A stbroadcast connection.
int stbroadcast_send_stubborn(struct stbroadcast_conn *c, clock_time_t t)
Send a stubborn message.