Exemplo n.º 1
0
/*---------------------------------------------------------------------------*/
void
netflood_open(struct netflood_conn *c, clock_time_t queue_time,
	uint16_t channel, const struct netflood_callbacks *u)
{
  ipolite_open(&c->c, channel, &netflood);
  c->u = u;
  c->queue_time = queue_time;
}
Exemplo n.º 2
0
/*---------------------------------------------------------------------------*/
void
rudolph1_open(struct rudolph1_conn *c, uint16_t channel,
	      const struct rudolph1_callbacks *cb)
{
  trickle_open(&c->trickle, TRICKLE_INTERVAL, channel, &trickle);
  ipolite_open(&c->ipolite, channel + 1, 1, &ipolite);
  c->cb = cb;
  c->version = 0;
  c->send_interval = DEFAULT_SEND_INTERVAL;
}
Exemplo n.º 3
0
/*---------------------------------------------------------------------------*/
void
polite_announcement_init(uint16_t channel,
			clock_time_t min,
			clock_time_t max)
{
  ipolite_open(&c.c, channel, &ipolite_callbacks);

  c.min_interval = min;
  c.max_interval = max;

  announcement_register_observer_callback(new_announcement);
}