mbed socket API

Dependents:   EthernetInterface EthernetInterface_RSF EthernetInterface EthernetInterface ... more

Deprecated

This is an mbed 2 sockets library. For mbed 5, network sockets have been revised to better support additional network stacks and thread safety here.

Revision:
4:75988d748e4d
Parent:
3:e6474399e057
Child:
5:300e7ad2dc1d
--- a/TCPSocketConnection.h	Wed Jul 25 14:59:37 2012 +0000
+++ b/TCPSocketConnection.h	Thu Jul 26 10:07:43 2012 +0000
@@ -39,7 +39,7 @@
     \param port The host's port to connect to.
     \return 0 on success, -1 on failure.
     */
-    int connect(char* host, int port);
+    int connect(const char* host, const int port);
     
     /** Send data to the remote host.
     \param data The buffer to send to the host.