Ops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d90d994c74
commit
a85139a1b7
@ -1037,8 +1037,8 @@ These semantics allow code like this:
|
|||||||
client->Connect(addr, FALSE);
|
client->Connect(addr, FALSE);
|
||||||
|
|
||||||
// Wait until the request completes or until we decide to give up
|
// Wait until the request completes or until we decide to give up
|
||||||
bool waitmore;
|
bool waitmore = TRUE;
|
||||||
while ( !WaitOnConnect(seconds, millis) && waitmore )
|
while ( !client->WaitOnConnect(seconds, millis) && waitmore )
|
||||||
{
|
{
|
||||||
// possibly give some feedback to the user,
|
// possibly give some feedback to the user,
|
||||||
// and update waitmore if needed.
|
// and update waitmore if needed.
|
||||||
|
@ -300,19 +300,19 @@ void MyFrame::OnOpenConnection(wxCommandEvent& WXUNUSED(event))
|
|||||||
//
|
//
|
||||||
// For blocking Connect:
|
// For blocking Connect:
|
||||||
//
|
//
|
||||||
// bool success = Connect(addr, TRUE);
|
// bool success = client->Connect(addr, TRUE);
|
||||||
//
|
//
|
||||||
// For nonblocking Connect:
|
// For nonblocking Connect:
|
||||||
//
|
//
|
||||||
// Connect(addr, FALSE);
|
// client->Connect(addr, FALSE);
|
||||||
//
|
//
|
||||||
// bool waitmore;
|
// bool waitmore = TRUE;
|
||||||
// while (!WaitOnConnect(seconds, millis) && waitmore)
|
// while (! client->WaitOnConnect(seconds, millis) && waitmore )
|
||||||
// {
|
// {
|
||||||
// // possibly give some feedback to the user,
|
// // possibly give some feedback to the user,
|
||||||
// // update waitmore if needed.
|
// // update waitmore if needed.
|
||||||
// }
|
// }
|
||||||
// bool success = IsConnected();
|
// bool success = client->IsConnected();
|
||||||
//
|
//
|
||||||
// And that's all :-)
|
// And that's all :-)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user