The network server connection interface class. More...
#include <netconn.h>
Public Member Functions | |
virtual void | SetNetworkService (INetService *pNetService) |
virtual void | SetSocket (wxSocketBase *sock) |
virtual bool | Destroy (void) |
wxGISNetServerConnection (wxSocketBase *sock) | |
virtual void | SetNetworkService (INetworkService *pNetService) |
virtual void | SetSocket (wxSocketBase *sock) |
virtual bool | Destroy (void) |
Public Member Functions inherited from INetConnection | |
virtual bool | Connect (void) |
virtual bool | Disconnect (void) |
virtual bool | IsConnected (void) |
virtual void | SendNetMessageAsync (const wxNetMessage &msg) |
virtual wxNetMessage | SendNetMessageSync (const wxNetMessage &msg) |
virtual int | GetId (void) const |
virtual void | SetId (const int nUserId) |
Public Member Functions inherited from wxGISConnectionPointContainer | |
virtual long | Advise (wxEvtHandler *pEvtHandler) |
virtual void | Unadvise (long nCookie) |
Protected Member Functions | |
virtual void | OnSocketEvent (wxSocketEvent &event) |
virtual void | OnTimer (wxTimerEvent &event) |
virtual bool | ProcessInputNetMessage (void) |
virtual void | OnSocketEvent (wxSocketEvent &event) |
void | OnTimer (wxTimerEvent &event) |
virtual void | ProcessInputNetMessage (unsigned char *const buff) |
Protected Member Functions inherited from INetConnection | |
bool | CreateAndRunThreads (void) |
void | DestroyThreads (void) |
virtual bool | ProcessOutputNetMessage (void) |
Protected Member Functions inherited from wxGISConnectionPointContainer | |
virtual void | AddEvent (const wxEvent &event) |
virtual void | PostEvent (wxEvent *event) |
Protected Attributes | |
INetService * | m_pNetService |
wxTimer | m_timer |
INetworkService * | m_pNetService |
Protected Attributes inherited from INetConnection | |
WXGISMSGQUEUE | m_aoMessages |
int | m_nUserId |
wxCriticalSection | m_dataCS |
wxCriticalSection | m_msgCS |
bool | m_bIsConnected |
bool | m_bIsConnecting |
wxSocketBase * | m_pSock |
wxNetWriterThread * | m_pOutThread |
wxNetReaderThread * | m_pInThread |
wxVector< wxNetMessage > | m_oaSyncMessages |
wxArrayLong | m_laWaitIds |
char | m_Buffer [BUFF_SIZE] |
Protected Attributes inherited from wxGISConnectionPointContainer | |
wxVector< wxEvtHandler * > | m_pPointsArray |
wxCriticalSection | m_CritSectEvt |
Additional Inherited Members | |
Public Types inherited from INetConnection | |
typedef std::priority_queue < wxNetMessage, std::deque < wxNetMessage > > | WXGISMSGQUEUE |
The network server connection interface class.