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:
2:b227d242f3c7
Parent:
1:8080965f5d76
--- a/TCPSocket.cpp	Tue Jun 26 15:32:12 2012 +0000
+++ b/TCPSocket.cpp	Mon Jul 23 11:52:50 2012 +0000
@@ -18,8 +18,6 @@
  
 #include "TCPSocket.h"
 
-#include "bsd_socket.h"
-
 #include <cstring>
 
 using std::memset;
@@ -45,7 +43,7 @@
   std::memset(&m_remoteHost, 0, sizeof(struct sockaddr_in));
 
   //Resolve DNS address or populate hard-coded IP address
-  struct hostent *server = ::gethostbyname(host);
+  struct hostent *server = gethostbyname(host);
   if(server == NULL)
   {
     return -1; //Could not resolve address