Socket code refactoring, plus stop polling with a 1s timeout in readBytes while we only want to poll with a 1ms timeout

This commit is contained in:
Benjamin Sergeant
2019-03-04 13:40:00 -08:00
parent 0c226c7629
commit c202f8cf1d
2 changed files with 39 additions and 21 deletions

View File

@ -39,6 +39,7 @@ namespace ix
void configure();
int select(int timeoutSecs, int timeoutMs);
virtual void poll(const OnPollCallback& onPollCallback,
int timeoutSecs = kDefaultPollTimeout);
virtual void wakeUpFromPoll();