changeset 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 ff98d79abf49
children 6599a9978ac4
files core/UdpClient.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/UdpClient.cpp	Sun Jun 05 02:30:32 2016 +0100
+++ b/core/UdpClient.cpp	Sun Jun 05 02:36:54 2016 +0100
@@ -60,7 +60,7 @@
 	int UdpClient::write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite){
 		setServer(remoteHostname);
 		setPort(remotePortNumber);
-		send(sourceBuffer, numBytesToWrite);
+		return send(sourceBuffer, numBytesToWrite);
 	}
   int UdpClient::waitUntilReady(bool readyForReading, int timeoutMsecs){
 //	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.