NetworkSocketAPI
Dependents: HelloWizFi250Interface
Fork of NetworkSocketAPI by
Diff: TCPSocket.h
- Revision:
- 75:dea0cdb42241
- Parent:
- 73:968f7b32278f
- Child:
- 76:bbe51641f405
--- a/TCPSocket.h Tue Apr 05 06:22:10 2016 -0500 +++ b/TCPSocket.h Tue Apr 05 06:56:22 2016 -0500 @@ -38,6 +38,12 @@ \return 0 on success, negative on failure */ int connect(const char* host, const int port); + + /** Connects this TCP socket to the server + \param address SocketAddress to connect to + \return 0 on success, negative on failure + */ + int connect(SocketAddress address); /** Check if the socket is connected \return true if connected, false otherwise