state_selecting
add_timeout_timespec(stop_time, state_selecting, ip);
cancel_timeout(state_selecting, ip);
void state_selecting(void *);