Actually the socket bind code was not needed thats for the tcp server

This commit is contained in:
xX-TheDoctor-Xx
2016-07-21 20:18:14 +01:00
parent 5bf0aebf0f
commit 1c9a9c809b

View File

@ -42,16 +42,6 @@ bool TcpClient::Initialize(const std::string &ip, uint16 port)
return false; return false;
} }
code = bind(tcp_socket, result->ai_addr, (int)result->ai_addrlen);
if (code == SOCKET_ERROR)
{
if (Config::GetUsingConsole())
std::cerr << WSAGetLastError() << std::endl; // display more info
freeaddrinfo(result);
WSACleanup();
return false;
}
initialized = true; initialized = true;
return true; return true;
} }