Customized
Dependents: MurataTypeYD_RPC_Sample
Fork of SNICInterface_mod by
Diff: Socket/TCPSocketConnection.h
- Revision:
- 44:c50e7332afcc
- Parent:
- 41:1c1b5ad4d491
--- a/Socket/TCPSocketConnection.h Fri Nov 14 00:52:31 2014 +0000 +++ b/Socket/TCPSocketConnection.h Fri Nov 21 03:50:48 2014 +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: