diff core/UdpClient.cpp @ 130:da1c61aa97ea scope-refactoring

Added JUCE-compatible write method
author Giulio Moro <giuliomoro@yahoo.it>
date Tue, 25 Aug 2015 11:14:25 +0100
parents 3068421c0737
children e77e2e712fbc
line wrap: on
line diff
--- a/core/UdpClient.cpp	Mon Aug 24 20:53:26 2015 +0100
+++ b/core/UdpClient.cpp	Tue Aug 25 11:14:25 2015 +0100
@@ -54,4 +54,9 @@
 		}
 		return 1;
 	};
+	int UdpClient::write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite){
+		setServer(remoteHostname);
+		setPort(remotePortNumber);
+		send(sourceBuffer, numBytesToWrite);
+	}