]> git.saurik.com Git - wxWidgets.git/commitdiff
explicitly set addr.LocalHost before creting the wxSocketServer object
authorGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 22 Nov 1999 01:25:10 +0000 (01:25 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Mon, 22 Nov 1999 01:25:10 +0000 (01:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/wxsocket/server.cpp

index a2285079c29b7313ed095ff62f5a15fa88aa66ab..817c15657b65774b063f28287970dbb5f2f5a964 100644 (file)
@@ -180,6 +180,7 @@ MyFrame::MyFrame() : wxFrame((wxFrame *)NULL, -1,
   // Create the socket
   wxIPV4address addr;
   addr.Service(3000);
+  addr.LocalHost();
 
   m_server = new wxSocketServer(addr);
   m_server->SetEventHandler(*this, SERVER_ID);