comparison core/UdpClient.cpp @ 335:f14dc4ac8955 prerelease

Suppresses warning when compiling UdpClient.cpp
author Giulio Moro <giuliomoro@yahoo.it>
date Sun, 05 Jun 2016 02:36:54 +0100
parents a14fe8b0f588
children 6599a9978ac4
comparison
equal deleted inserted replaced
334:ff98d79abf49 335:f14dc4ac8955
58 return 1; 58 return 1;
59 }; 59 };
60 int UdpClient::write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite){ 60 int UdpClient::write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite){
61 setServer(remoteHostname); 61 setServer(remoteHostname);
62 setPort(remotePortNumber); 62 setPort(remotePortNumber);
63 send(sourceBuffer, numBytesToWrite); 63 return send(sourceBuffer, numBytesToWrite);
64 } 64 }
65 int UdpClient::waitUntilReady(bool readyForReading, int timeoutMsecs){ 65 int UdpClient::waitUntilReady(bool readyForReading, int timeoutMsecs){
66 // If the socket is ready on return, this returns 1. If it times-out before the socket becomes ready, it returns 0. If an error occurs, it returns -1. 66 // If the socket is ready on return, this returns 1. If it times-out before the socket becomes ready, it returns 0. If an error occurs, it returns -1.
67 if(enabled==false) 67 if(enabled==false)
68 return -1; 68 return -1;