A fork of the original interface for OS/2. Features a correctly-implemented recv (but retains the old behavior via recv2).
Dependents: weather_clock weather_clock
Diff: Socket/TCPSocketConnection.h
- Revision:
- 50:f484783b8a34
- Parent:
- 30:c035696b9397
diff -r cac09a34102c -r f484783b8a34 Socket/TCPSocketConnection.h --- a/Socket/TCPSocketConnection.h Sun Mar 31 00:53:46 2019 +0000 +++ b/Socket/TCPSocketConnection.h Sun Mar 31 03:08:45 2019 +0000 @@ -64,7 +64,7 @@ \param length The maximum length of the buffer. \return the number of received bytes on success (>=0) or -1 on failure */ - int receive(char* data, int length); + int receive(char* data, int length, int offset); /** Receive all the data from the remote host. \param data The buffer in which to store the data received from the host.