rsunicast/rsunicast.h
/**
 * Will allow the rsunicast to close the connections if nothing has to be sent
 */
Will allow the rsunicast to close the connections if nothing has to be sent
Will allow the rsunicast to close the connections if nothing has to be sent
void rsunicast_allowSleeping()
{
	rsu_is_allowed_to_sleep = 1;
	if(rsu_queue == 0) {
		unicast_close(&rsu_data_channel);
		unicast_close(&rsu_ack_channel);
		rsu_is_online = 0;
	}
}
void rsunicast_allowSleeping ( ) { rsu_is_allowed_to_sleep = 1 ; if ( rsu_queue == 0 ) { unicast_close ( & rsu_data_channel ) ; unicast_close ( & rsu_ack_channel ) ; rsu_is_online = 0 ; } }
Will allow the rsunicast to close the connections if nothing has to be sent
Will allow the rsunicast to close the connections if nothing has to be sent
//if is idle, set to sleep