]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
Fixed lack of copying help. Regenerated makefiles.
[wxWidgets.git] / src / common / socket.cpp
index 848e383c4b1449ddf9317ddf7944f903776f652b..8edfe18588d0f9d5ee91a334e6edc2ab924f3e78 100644 (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);
@@ -1262,7 +1267,6 @@ wxDatagramSocket::wxDatagramSocket( wxSockAddress& addr,
     return;
   }
   // Setup the socket as non connection oriented
-  GSocket_Unstreamed(m_socket);
   GSocket_SetLocal(m_socket, addr.GetAddress());
   if( GSocket_SetNonOriented(m_socket) != GSOCK_NOERROR )
   {