no default parameters for isReadyToWrite and isReadyToRead

This commit is contained in:
Benjamin Sergeant 2019-03-18 14:31:21 -07:00
parent d58798e36c
commit 572a217050
3 changed files with 3 additions and 4 deletions

View File

@ -49,7 +49,7 @@ namespace ix
return; return;
} }
PollResultType pollResult = isReadyToRead(timeoutSecs); PollResultType pollResult = isReadyToRead(timeoutSecs, 0);
if (onPollCallback) onPollCallback(pollResult); if (onPollCallback) onPollCallback(pollResult);
} }

View File

@ -51,8 +51,8 @@ namespace ix
bool wakeUpFromPoll(uint8_t wakeUpCode); bool wakeUpFromPoll(uint8_t wakeUpCode);
PollResultType select(bool readyToRead, int timeoutSecs, int timeoutMs); PollResultType select(bool readyToRead, int timeoutSecs, int timeoutMs);
PollResultType isReadyToWrite(int timeoutSecs, int timeoutMs = 0); PollResultType isReadyToWrite(int timeoutSecs, int timeoutMs);
PollResultType isReadyToRead(int timeoutSecs, int timeoutMs = 0); PollResultType isReadyToRead(int timeoutSecs, int timeoutMs);
// Virtual methods // Virtual methods
virtual bool connect(const std::string& url, virtual bool connect(const std::string& url,

View File

@ -204,7 +204,6 @@ namespace ix
{ {
// Wait with a 10ms timeout until the socket is ready to write. // Wait with a 10ms timeout until the socket is ready to write.
// This way we are not busy looping // This way we are not busy looping
int timeoutMs = 10;
PollResultType result = _socket->isReadyToWrite(0, 10); PollResultType result = _socket->isReadyToWrite(0, 10);
if (result == PollResultType_Error) if (result == PollResultType_Error)
{ {