A Server side Network Service. More...
#include <servernet.h>
Public Member Functions | |
wxGISNetworkService (INetEventProcessor *pNetEvtProc) | |
virtual bool | Start (void) |
virtual bool | Stop (void) |
virtual wxString | GetServerName (void) const |
virtual bool | CanConnect (const wxString &sName, const wxString &sPass) |
virtual void | AddConnection (wxGISNetServerConnection *pConn) |
virtual bool | DestroyConnection (wxGISNetServerConnection *pConn) |
virtual void | RemoveConnection (wxGISNetServerConnection *pConn) |
bool | DestroyConnections () |
void | SendNetMessage (const wxNetMessage &msg, int nId=wxNOT_FOUND) |
virtual void | AddNetworkPlugin (const wxString &sClassName, const wxXmlNode *pConfigNode) |
virtual bool | Start (IServerApplication *pApp, wxXmlNode *pConfig) |
virtual bool | Stop (void) |
virtual void | ProcessMessage (WXGISMSG msg, wxXmlNode *pChildNode) |
virtual wxString | GetServerName (void) |
virtual bool | CanAcceptConnection (void) |
virtual bool | AddConnection (INetServerConnection *pNetServerConnection) |
virtual void | DelConnection (long nConnID) |
virtual void | PutInMessage (WXGISMSG msg) |
virtual void | PutOutMessage (WXGISMSG msg) |
virtual WXGISMSG | GetOutMessage (void) |
virtual void | ProcessOutMessage (WXGISMSG msg) |
virtual void | SetAuth (AUTHRESPOND sUserInfo) |
virtual AUTHRESPOND | GetAuth (long nID) |
Protected Types | |
typedef std::map< long, INetServerConnection * > ::iterator | ConnIT |
Protected Member Functions | |
wxGISNetServerConnectionList & | GetConnections () |
virtual void | OnGISNetEvent (wxGISNetEvent &event) |
virtual void | ClearMessageQueue (void) |
Protected Attributes | |
short | m_nMaxConnectoinCount |
int | m_nConnectionCounter |
wxVector< INetPlugin * > | m_paNetworkPlugins |
wxString | m_sServerName |
wxGISNetServerConnectionList | m_plNetworkConnections |
int | m_nConnectionIdCounter |
INetEventProcessor * | m_pNetEvtProc |
wxXmlNode * | m_pConfig |
IServerApplication * | m_pApp |
std::vector< INetworkPlugin * > | m_NetworkPluginArray |
long | m_nConnectionCounter |
long | m_nConnectionID |
std::map< long, INetServerConnection * > | m_NetworkConnectionMap |
wxMsgOutThread * | m_pMsgOutThread |
wxCriticalSection | m_CriticalSection |
WXGISMSGQUEUE | m_MsgQueue |