+
+ // This test is similar to the first one, but the len is
+ // expressed in kbytes - this tests large data transfers.
+ //
+ sock->SetFlags(wxSOCKET_WAITALL);
+
+ sock->Read((char *)&len, 1);
+ buf = new char[len * 1024];
+ sock->Read(buf, len * 1024);
+ sock->Write(buf, len * 1024);
+ delete[] buf;
+