Actually the socket bind code was not needed thats for the tcp server
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user