no default parameters for isReadyToWrite and isReadyToRead
This commit is contained in:
		@@ -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);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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)
 | 
				
			||||||
                        {
 | 
					                        {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user