b46b1d59d6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/private/gsocketiohandler.h
|
|
// Purpose: class for registering GSocket in wxSelectDispatcher
|
|
// Authors: Lukasz Michalski
|
|
// Modified by:
|
|
// Created: December 2006
|
|
// Copyright: (c) Lukasz Michalski
|
|
// RCS-ID: $Id$
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_PRIVATE_GSOCKETIOHANDLER_H_
|
|
#define _WX_PRIVATE_GSOCKETIOHANDLER_H_
|
|
|
|
#include "wx/defs.h"
|
|
#include "wx/private/selectdispatcher.h"
|
|
|
|
#if wxUSE_SOCKETS
|
|
|
|
// forward declarations
|
|
class GSocket;
|
|
|
|
class WXDLLIMPEXP_CORE wxGSocketIOHandler : public wxFDIOHandler
|
|
{
|
|
public:
|
|
wxGSocketIOHandler(GSocket* socket);
|
|
int GetFlags() const;
|
|
void RemoveFlag(wxFDIODispatcherEntryFlags flag);
|
|
void AddFlag(wxFDIODispatcherEntryFlags flag);
|
|
|
|
virtual void OnReadWaiting();
|
|
virtual void OnWriteWaiting();
|
|
virtual void OnExceptionWaiting();
|
|
|
|
private:
|
|
GSocket* m_socket;
|
|
int m_flags;
|
|
};
|
|
|
|
#endif // wxUSE_SOCKETS
|
|
|
|
#endif // _WX_PRIVATE_SOCKETEVTDISPATCH_H_
|