Ejemplo n.º 1
0
void
SES_Handle(struct sess *sp, double now)
{

	sp->step = STP_WAIT;
	sp->t_req = now;
	(void)SES_Schedule(sp);
}
Ejemplo n.º 2
0
void
SES_Handle(struct sess *sp, int status)
{

	switch (status) {
	case -2:
		SES_Delete(sp, "blast");
		break;
	case -1:
		SES_Delete(sp, "no request");
		break;
	case 1:
		sp->step = STP_START;
		(void)SES_Schedule(sp);
		break;
	default:
		WRONG("Unexpected return from HTC_Rx()");
	}
}