explicitly set addr.LocalHost before creting the wxSocketServer object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user