sock = new MyClient();
sock->SetFlags((wxSocketBase::wxSockFlags) (wxSocketBase::WAITALL | wxSocketBase::SPEED));
sock->frame = this;
- sock->SetNotify(GSOCK_LOST_FLAG);
+ sock->SetNotify(wxSOCKET_LOST_FLAG);
CreateStatusBar(2);
UpdateStatus();
}
/* No 2 */
sock->SetEventHandler(*this, SKDEMO_SCK);
- sock->SetNotify(GSOCK_INPUT_FLAG | GSOCK_LOST_FLAG);
+ sock->SetNotify(wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLAG);
sock->Notify(TRUE);
text_win->WriteText("Test 1B: sending bytes to the server\n");
wxPrintf(_T("OnSockRequest OK\n"));
wxPrintf(_T("OnSockRequest (event = %d)\n"),evt.SocketEvent());
switch (evt.SocketEvent()) {
- case GSOCK_INPUT:
+ case wxSOCKET_INPUT:
unsigned char c;
sock->Read((char *)&c, 1);
ExecTest1(sock);
break;
- case GSOCK_LOST:
+ case wxSOCKET_LOST:
wxPrintf(_T("Destroying socket\n"));
wxPendingDelete.Append(sock);
UpdateStatus(-1);
sock2->SetFlags(wxSocketBase::NONE);
sock2->Notify(TRUE);
sock2->SetEventHandler(*this, SKDEMO_SOCKET);
- sock2->SetNotify(GSOCK_INPUT_FLAG | GSOCK_LOST_FLAG);
+ sock2->SetNotify(wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLAG);
}
// My frame Constructor
// Init all
sock = new wxSocketServer(addr);
- sock->SetNotify(GSOCK_CONNECTION_FLAG);
+ sock->SetNotify(wxSOCKET_CONNECTION_FLAG);
sock->SetEventHandler(*this, SKDEMO_SOCKET_SERV);
sock->SetFlags(wxSocketBase::SPEED);
sock->Notify(TRUE);