From: Guillermo Rodriguez Garcia Date: Sat, 4 Mar 2000 13:20:35 +0000 (+0000) Subject: Ops X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a85139a1b7d2b6b291d6eb4df74a1da24f843982 Ops git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/socket.tex b/docs/latex/wx/socket.tex index 269f5397aa..263aeb58f5 100644 --- a/docs/latex/wx/socket.tex +++ b/docs/latex/wx/socket.tex @@ -1037,8 +1037,8 @@ These semantics allow code like this: client->Connect(addr, FALSE); // Wait until the request completes or until we decide to give up -bool waitmore; -while ( !WaitOnConnect(seconds, millis) && waitmore ) +bool waitmore = TRUE; +while ( !client->WaitOnConnect(seconds, millis) && waitmore ) { // possibly give some feedback to the user, // and update waitmore if needed. diff --git a/samples/sockets/client.cpp b/samples/sockets/client.cpp index a33c01c74a..fb1a153b87 100644 --- a/samples/sockets/client.cpp +++ b/samples/sockets/client.cpp @@ -300,19 +300,19 @@ void MyFrame::OnOpenConnection(wxCommandEvent& WXUNUSED(event)) // // For blocking Connect: // - // bool success = Connect(addr, TRUE); + // bool success = client->Connect(addr, TRUE); // // For nonblocking Connect: // - // Connect(addr, FALSE); + // client->Connect(addr, FALSE); // - // bool waitmore; - // while (!WaitOnConnect(seconds, millis) && waitmore) + // bool waitmore = TRUE; + // while (! client->WaitOnConnect(seconds, millis) && waitmore ) // { // // possibly give some feedback to the user, // // update waitmore if needed. // } - // bool success = IsConnected(); + // bool success = client->IsConnected(); // // And that's all :-)