test
Diff: TCPSocket.h
- Revision:
- 1:8080965f5d76
- Parent:
- 0:1f77255a22f5
- Child:
- 2:b227d242f3c7
diff -r 1f77255a22f5 -r 8080965f5d76 TCPSocket.h --- a/TCPSocket.h Tue Jun 26 13:16:26 2012 +0000 +++ b/TCPSocket.h Tue Jun 26 15:32:12 2012 +0000 @@ -19,8 +19,6 @@ #ifndef TCPSOCKET_H #define TCPSOCKET_H -#include <cstdint> - #include "bsd_socket.h" /** @@ -72,7 +70,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 send(std::uint8_t* data, int length, int timeout = 0); + int send(char* data, int length, int timeout = 0); /** Receive data from the remote host. \param data The buffer in which to store the data received from the host. @@ -80,7 +78,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 receive(std::uint8_t* data, int length, int timeout = 0); + int receive(char* data, int length, int timeout = 0); /** Close the socket. */