Mercurial > hg > beaglert
diff include/UdpClient.h @ 235:3d41a6fa1830
Merge
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Sun, 10 Apr 2016 04:08:06 +0200 |
parents | c42a6b4dc2d4 |
children | 6599a9978ac4 |
line wrap: on
line diff
--- a/include/UdpClient.h Sat Feb 13 01:51:01 2016 +0000 +++ b/include/UdpClient.h Sun Apr 10 04:08:06 2016 +0200 @@ -23,6 +23,8 @@ int port; int enabled; int outSocket; + struct timeval stTimeOut; + fd_set stWriteFDS; bool isSetPort; bool isSetServer; struct sockaddr_in destinationServer; @@ -33,6 +35,8 @@ void setPort(int aPort); void setServer(const char* aServerName); int send(void* message, int size); + int write(const char* remoteHostname, int remotePortNumber, void* sourceBuffer, int numBytesToWrite); + int waitUntilReady(bool readyForReading, int timeoutMsecs); };