mbed socket API
Dependents: EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more
Deprecated
This is an mbed 2 sockets library. For mbed 5, network sockets have been revised to better support additional network stacks and thread safety here.
Diff: TCPSocket.cpp
- Revision:
- 1:8080965f5d76
- Parent:
- 0:1f77255a22f5
- Child:
- 2:b227d242f3c7
--- a/TCPSocket.cpp Tue Jun 26 13:16:26 2012 +0000 +++ b/TCPSocket.cpp Tue Jun 26 15:32:12 2012 +0000 @@ -152,7 +152,7 @@ } // -1 if unsuccessful, else number of bytes written -int TCPSocket::send(uint8_t* data, int length, int timeout) +int TCPSocket::send(char* data, int length, int timeout) { if( m_sock < 0 ) { @@ -203,7 +203,7 @@ } // -1 if unsuccessful, else number of bytes received -int TCPSocket::receive(uint8_t* data, int length, int timeout) +int TCPSocket::receive(char* data, int length, int timeout) { if( m_sock < 0 ) {