Nothing serious here :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -169,8 +169,10 @@ void MyFrame::OnExecOpenConnection(wxCommandEvent& WXUNUSED(evt))
|
|||||||
"Connect ...", "localhost");
|
"Connect ...", "localhost");
|
||||||
addr.Hostname(hname);
|
addr.Hostname(hname);
|
||||||
addr.Service(3000);
|
addr.Service(3000);
|
||||||
sock->SetNotify(0);
|
sock->SetNotify(wxSOCKET_CONNECTION_FLAG | wxSOCKET_LOST_FLAG);
|
||||||
sock->Connect(addr, TRUE);
|
sock->SetNotify(TRUE);
|
||||||
|
sock->Connect(addr, FALSE);
|
||||||
|
sock->WaitOnConnect(10);
|
||||||
sock->SetFlags(wxSocketBase::NONE);
|
sock->SetFlags(wxSocketBase::NONE);
|
||||||
if (!sock->IsConnected())
|
if (!sock->IsConnected())
|
||||||
wxMessageBox("Can't connect to the specified host", "Alert !");
|
wxMessageBox("Can't connect to the specified host", "Alert !");
|
||||||
@@ -238,7 +240,7 @@ void MyFrame::OnExecTest1(wxCommandEvent& WXUNUSED(evt))
|
|||||||
if (!sock->IsConnected())
|
if (!sock->IsConnected())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
wxDialog *dlgbox = new wxDialog(this, -1, "Test 1", wxDefaultPosition, wxSize(414, 250));
|
wxDialog *dlgbox = new wxDialog(this, -1, "Test 1", wxDefaultPosition, wxSize(414, 280));
|
||||||
wxTextCtrl *text_win = new wxTextCtrl(dlgbox, -1, "",
|
wxTextCtrl *text_win = new wxTextCtrl(dlgbox, -1, "",
|
||||||
wxPoint(0, 0), wxSize(400, 200),
|
wxPoint(0, 0), wxSize(400, 200),
|
||||||
wxTE_MULTILINE);
|
wxTE_MULTILINE);
|
||||||
|
Reference in New Issue
Block a user