Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Socket by
Diff: UDPSocket.h
- Revision:
- 1:8080965f5d76
- Parent:
- 0:1f77255a22f5
- Child:
- 2:b227d242f3c7
--- a/UDPSocket.h Tue Jun 26 13:16:26 2012 +0000
+++ b/UDPSocket.h Tue Jun 26 15:32:12 2012 +0000
@@ -49,7 +49,7 @@
\param timeout The maximum amount of time in ms to wait while trying to send the buffer.
\return the number of written bytes on success (>=0) or -1 on failure
*/
- int sendTo(std::uint8_t* data, int length, char* host, int port, int timeout = 0);
+ int sendTo(char* data, int length, char* host, int port, int timeout = 0);
/** Receive data from a remote host.
\param data The buffer in which to store the data received from the host.
@@ -59,7 +59,7 @@
\param timeout The maximum amount of time in ms to wait while trying to receive data.
\return the number of received bytes on success (>=0) or -1 on failure
*/
- int receiveFrom(std::uint8_t* data, int length, char** host, int* port, int timeout = 0);
+ int receiveFrom(char* data, int length, char** host, int* port, int timeout = 0);
/** Close the socket.
*/
