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.cpp
- Revision:
- 1:8080965f5d76
- Parent:
- 0:1f77255a22f5
- Child:
- 2:b227d242f3c7
--- a/UDPSocket.cpp Tue Jun 26 13:16:26 2012 +0000 +++ b/UDPSocket.cpp Tue Jun 26 15:32:12 2012 +0000 @@ -58,7 +58,7 @@ } // -1 if unsuccessful, else number of bytes written -int UDPSocket::sendTo(uint8_t* data, int length, char* host, int port, int timeout) +int UDPSocket::sendTo(char* data, int length, char* host, int port, int timeout) { if( m_sock < 0 ) { @@ -119,7 +119,7 @@ } // -1 if unsuccessful, else number of bytes received -int UDPSocket::receiveFrom(uint8_t* data, int length, char** host, int* port, int timeout) +int UDPSocket::receiveFrom(char* data, int length, char** host, int* port, int timeout) { if( m_sock < 0 ) {