Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
129:cce58e6ec2a2 | 130:da1c61aa97ea |
---|---|
52 if (n < 0){ | 52 if (n < 0){ |
53 return n; | 53 return n; |
54 } | 54 } |
55 return 1; | 55 return 1; |
56 }; | 56 }; |
57 int UdpClient::write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite){ | |
58 setServer(remoteHostname); | |
59 setPort(remotePortNumber); | |
60 send(sourceBuffer, numBytesToWrite); | |
61 } | |
57 | 62 |