]> git.saurik.com Git - wxWidgets.git/commitdiff
Ops
authorGuillermo Rodriguez Garcia <guille@iies.es>
Sat, 4 Mar 2000 13:20:35 +0000 (13:20 +0000)
committerGuillermo Rodriguez Garcia <guille@iies.es>
Sat, 4 Mar 2000 13:20:35 +0000 (13:20 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/socket.tex
samples/sockets/client.cpp

index 269f5397aadf5bcc93266f2380161eb415a53647..263aeb58f5bcb543644023998b3011729714d521 100644 (file)
@@ -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.
index a33c01c74a4c8189dcf9393e8ee819c020bb9f4b..fb1a153b87a6b5419b5640b070a9612ddd65317e 100644 (file)
@@ -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 :-)