'using namespace std;' added.

This commit is contained in:
Roland Jax
2014-11-22 20:42:11 +01:00
parent b593af967a
commit 4a1033122c
33 changed files with 709 additions and 646 deletions
+3 -1
View File
@@ -24,6 +24,8 @@
#include <netdb.h>
#include <string.h>
using namespace std;
TCPSocket::TCPSocket(int sfd, struct sockaddr_in* address) : m_sfd(sfd)
{
char ip[17];
@@ -41,7 +43,7 @@ bool TCPSocket::isValid()
}
TCPSocket* TCPClient::connect(const std::string& server, const int& port)
TCPSocket* TCPClient::connect(const string& server, const int& port)
{
struct sockaddr_in address;
int ret;