2007-03-16 11:45:12 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// 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;
|
2007-05-14 19:43:39 -04:00
|
|
|
void RemoveFlag(wxFDIODispatcherEntryFlags flag);
|
|
|
|
void AddFlag(wxFDIODispatcherEntryFlags flag);
|
2007-03-16 11:45:12 -04:00
|
|
|
|
2007-05-14 19:43:39 -04:00
|
|
|
virtual void OnReadWaiting();
|
|
|
|
virtual void OnWriteWaiting();
|
|
|
|
virtual void OnExceptionWaiting();
|
2007-03-16 11:45:12 -04:00
|
|
|
|
2007-05-14 19:43:39 -04:00
|
|
|
private:
|
2007-03-16 11:45:12 -04:00
|
|
|
GSocket* m_socket;
|
|
|
|
int m_flags;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // wxUSE_SOCKETS
|
|
|
|
|
|
|
|
#endif // _WX_PRIVATE_SOCKETEVTDISPATCH_H_
|