From fade627a8184ce928a80d041ae0217c17ea83d51 Mon Sep 17 00:00:00 2001 From: Guillermo Rodriguez Garcia Date: Sat, 11 Sep 1999 20:29:50 +0000 Subject: [PATCH] Prototypes for some _internal_ functions had to be changed (API remains the same) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/socket.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/wx/socket.h b/include/wx/socket.h index da40262dc9..22f5d74bfd 100644 --- a/include/wx/socket.h +++ b/include/wx/socket.h @@ -1,7 +1,7 @@ ///////////////////////////////////////////////////////////////////////////// // Name: socket.h // Purpose: Socket handling classes -// Author: Guilhem Lavaux +// Authors: Guilhem Lavaux, Guillermo Rodriguez Garcia // Modified by: // Created: April 1997 // RCS-ID: $Id$ @@ -82,13 +82,13 @@ public: // Type of request enum wxSockType { SOCK_CLIENT, SOCK_SERVER, SOCK_INTERNAL, SOCK_UNINIT }; - typedef void (*wxSockCbk)(wxSocketBase& sock,wxSocketNotify evt,char *cdata); + typedef void (*wxSockCbk)(wxSocketBase& sock, wxSocketNotify evt, char *cdata); protected: GSocket *m_socket; // wxSocket socket wxSockFlags m_flags; // wxSocket flags wxSockType m_type; // wxSocket type - wxSocketEventFlags m_neededreq; // Specify which requet signals we need + wxSocketEventFlags m_neededreq; // Which events we are interested in wxUint32 m_lcount; // Last IO request size unsigned long m_timeout; // IO timeout value @@ -167,7 +167,7 @@ public: // Setup event handler void SetEventHandler(wxEvtHandler& evt_hdlr, int id = -1); - // Method called when it happens something on the socket + // Method called when something happens in the socket void SetNotify(wxSocketEventFlags flags); virtual void OnRequest(wxSocketNotify req_evt); @@ -201,11 +201,11 @@ public: protected: #endif - bool _Wait(long seconds, long milliseconds, int type); + bool _Wait(long seconds, long milliseconds, wxSocketEventFlags flags); int DeferRead(char *buffer, wxUint32 nbytes); int DeferWrite(const char *buffer, wxUint32 nbytes); - void DoDefer(wxSocketNotify evt); + void DoDefer(); // Pushback library wxUint32 GetPushback(char *buffer, wxUint32 size, bool peek); -- 2.45.2