1 #ifndef __SOCKET_SELECTOR_H__ 2 #define __SOCKET_SELECTOR_H__ 34 if (local_max < _read._maxid)
35 local_max = _read._maxid;
36 if (local_max < _write._maxid)
37 local_max = _write._maxid;
38 if (local_max < _error._maxid)
39 local_max = _error._maxid;
41 timeval localtv = timeout.GetTval();
42 _answer = DO_SELECT(local_max + 1, &_read._the_set, &_write._the_set, &_error._the_set, &localtv);
79 #endif //__SOCKET_SELECTOR_H__ int WaitFor_Write_Error(const Socket_fdset &fd, const Time_Span &timeout)
Helper function for WaitFor Only looks for writability and errors.
int WaitFor(const Time_Span &timeout)
This function is the reason this call exists.
int WaitFor_All(const Socket_fdset &fd, const Time_Span &timeout)
Helper function to utilize the WaitFor function.
void clear()
Marks the content as empty.
int WaitFor_Read_Error(const Socket_fdset &fd, const Time_Span &timeout)
Helper function for WaitFor Only looks for readability and errors.