Esempio n. 1
0
/*---------------------------------------------------------------------------*/
void
rudolph2_open(struct rudolph2_conn *c, uint16_t channel,
	      const struct rudolph2_callbacks *cb)
{
  polite_open(&c->c, channel, &polite);
  c->cb = cb;
  c->version = 0;
  c->hops_from_base = HOPS_MAX;
}
Esempio n. 2
0
/*---------------------------------------------------------------------------*/
void
rudolph0_open(struct rudolph0_conn *c, uint16_t channel,
	      const struct rudolph0_callbacks *cb)
{
  stbroadcast_open(&c->c, channel, &stbroadcast);
  polite_open(&c->nackc, channel + 1, &polite);
  c->cb = cb;
  c->current.h.version = 0;
  c->state = STATE_RECEIVER;
  c->send_interval = DEFAULT_SEND_INTERVAL;
}