Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DnsQuery
Fork of NetworkSocketAPI by
Diff: TCPSocket.h
- Revision:
- 3:dea0cdb42241
- Parent:
- 1:968f7b32278f
- Child:
- 4: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
