rsunicast/rsunicast.h
/**
 * Disallows the rsuincast to close the connections if nothing has to be sent.
 * Wakes the rsunicast up if it is sleeping.
 */
Disallows the rsuincast to close the connections if nothing has to be sent.
Wakes the rsunicast up if it is sleeping.
Disallows the rsuincast to close the connections if nothing has to be sent . Wakes the rsunicast up if it is sleeping .
void rsunicast_disallowSleeping()
{
	rsu_is_allowed_to_sleep = 0;
	if(rsu_is_online == 0) {
		unicast_open(&rsu_data_channel, MESSAGING_PORT, &rsu_msg_callbacks);
		unicast_open(&rsu_ack_channel, ACKNOWLEDGEMENT_PORT, &rsu_ack_callbacks);
		rsu_is_online = 1;
	}
}
void rsunicast_disallowSleeping ( ) { rsu_is_allowed_to_sleep = 0 ; if ( rsu_is_online == 0 ) { unicast_open ( & rsu_data_channel , MESSAGING_PORT , & rsu_msg_callbacks ) ; unicast_open ( & rsu_ack_channel , ACKNOWLEDGEMENT_PORT , & rsu_ack_callbacks ) ; rsu_is_online = 1 ; } }
Disallows the rsuincast to close the connections if nothing has to be sent.
Disallows the rsuincast to close the connections if nothing has to be sent .
//if is sleeping, wake up