SNICInterface for ThingPlug Example
Dependents: ThingPlug_WiFi_Example ThingPlug_WiFi_Example_2
Fork of SNICInterface by
Diff: Socket/TCPSocketConnection.h
- Revision:
- 48:ee7e07fb401f
- Parent:
- 41:1c1b5ad4d491
diff -r 69dd5911fc6a -r ee7e07fb401f Socket/TCPSocketConnection.h --- a/Socket/TCPSocketConnection.h Mon Feb 02 00:10:06 2015 +0000 +++ b/Socket/TCPSocketConnection.h Tue Mar 31 02:48:32 2015 +0000 @@ -69,6 +69,13 @@ @return the number of received bytes on success (>=0) or -1 on failure */ int receive(char *data_p, int length); + + /** Send data to the remote host. + @param data The buffer to send to the host. + @param length The length of the buffer to send. + @return the number of written bytes on success (>=0) or -1 on failure + */ + int receive_all(char *data_p, int length); void setAcceptSocket( int socket_id ); private: