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.
Diff: TCPSocket.cpp
- Revision:
- 2:b227d242f3c7
- Parent:
- 1:8080965f5d76
diff -r 8080965f5d76 -r b227d242f3c7 TCPSocket.cpp
--- 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