From 1c9a9c809b1e1d27011c329e7f6a93d18560e4ee Mon Sep 17 00:00:00 2001 From: xX-TheDoctor-Xx Date: Thu, 21 Jul 2016 20:18:14 +0100 Subject: [PATCH] Actually the socket bind code was not needed thats for the tcp server --- src/TcpClientWindows.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/TcpClientWindows.cpp b/src/TcpClientWindows.cpp index b84cc1d..0e35cf2 100644 --- a/src/TcpClientWindows.cpp +++ b/src/TcpClientWindows.cpp @@ -42,16 +42,6 @@ bool TcpClient::Initialize(const std::string &ip, uint16 port) 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; return true; }