From 2618484fedc66345f5eee0c45f2bc89c0651c039 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Tue, 7 Sep 1999 16:23:46 +0000 Subject: [PATCH] Little changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/wxsocket/client.cpp | 4 ++-- samples/wxsocket/server.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/wxsocket/client.cpp b/samples/wxsocket/client.cpp index 3714a4f2ba..5a961e4cf5 100644 --- a/samples/wxsocket/client.cpp +++ b/samples/wxsocket/client.cpp @@ -143,7 +143,7 @@ MyFrame::MyFrame(): 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(); } @@ -281,7 +281,7 @@ void MyFrame::OnExecTest1(wxCommandEvent& WXUNUSED(evt)) /* 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"); diff --git a/samples/wxsocket/server.cpp b/samples/wxsocket/server.cpp index 26001a4453..3d6438fe29 100644 --- a/samples/wxsocket/server.cpp +++ b/samples/wxsocket/server.cpp @@ -111,7 +111,7 @@ void MyFrame::OnSockRequest(wxSocketEvent& evt) 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); @@ -119,7 +119,7 @@ void MyFrame::OnSockRequest(wxSocketEvent& evt) ExecTest1(sock); break; - case GSOCK_LOST: + case wxSOCKET_LOST: wxPrintf(_T("Destroying socket\n")); wxPendingDelete.Append(sock); UpdateStatus(-1); @@ -155,7 +155,7 @@ void MyFrame::OnSockRequestServer(wxSocketEvent& evt) 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 @@ -169,7 +169,7 @@ MyFrame::MyFrame(wxFrame *frame): // 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); -- 2.45.2