Lines Matching defs:sock
67 void Test1(wxSocketBase *sock);
68 void Test2(wxSocketBase *sock);
69 void Test3(wxSocketBase *sock);
221 void MyFrame::Test1(wxSocketBase *sock)
234 sock->SetFlags(wxSOCKET_WAITALL);
237 sock->Read(&len, 1);
241 sock->Read(buf, len);
245 sock->Write(buf, len);
251 void MyFrame::Test2(wxSocketBase *sock)
265 len = sock->ReadMsg(buf, MAX_MSG_SIZE * sizeof(wxChar)).LastCount();
271 sock->WriteMsg(buf, len);
279 void MyFrame::Test3(wxSocketBase *sock)
289 sock->SetFlags(wxSOCKET_WAITALL);
292 sock->Read(&len, 1);
296 sock->Read(buf, len * 1024);
300 sock->Write(buf, len * 1024);
309 wxSocketBase *sock;
324 sock = m_server->Accept(false);
326 if (sock)
336 sock->SetEventHandler(*this, SOCKET_ID);
337 sock->SetNotify(wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLAG);
338 sock->Notify(true);
347 wxSocketBase *sock = event.GetSocket();
366 sock->SetNotify(wxSOCKET_LOST_FLAG);
370 sock->Read(&c, 1);
374 case 0xBE: Test1(sock); break;
375 case 0xCE: Test2(sock); break;
376 case 0xDE: Test3(sock); break;
382 sock->SetNotify(wxSOCKET_LOST_FLAG | wxSOCKET_INPUT_FLAG);
399 sock->Destroy();