replaced my recent GSocket_SetReuseAddr() addition with GSocket_SetReusable() from the patch 992473; it also adds and documents wxSOCKET_REUSEADDR flag

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-07-25 17:06:01 +00:00
parent 733a25f0f4
commit 74c481d117
6 changed files with 69 additions and 37 deletions

View File

@@ -1068,6 +1068,11 @@ wxSocketServer::wxSocketServer(wxSockAddress& addr_man,
// Setup the socket as server
GSocket_SetLocal(m_socket, addr_man.GetAddress());
if (GetFlags() & wxSOCKET_REUSEADDR) {
GSocket_SetReusable(m_socket);
}
if (GSocket_SetServer(m_socket) != GSOCK_NOERROR)
{
GSocket_destroy(m_socket);