23 #include "wxgis/net/netconn.h"
24 #include "wxgis/net/netevent.h"
32 class WXDLLIMPEXP_GIS_NET
INetPlugin :
public wxEvtHandler
37 virtual bool Start(
INetService* pNetService,
const wxXmlNode* pConfig) = 0;
38 virtual bool Stop(
void) = 0;
41 WX_DECLARE_LIST_2(
wxGISNetServerConnection, wxGISNetServerConnectionList, wxGISNetServerConnectionNode,
class WXDLLIMPEXP_GIS_NET);
60 virtual bool Start(
void);
61 virtual bool Stop(
void);
62 virtual wxString GetServerName(
void)
const;
63 virtual bool CanConnect(
const wxString &sName,
const wxString &sPass);
68 bool DestroyConnections();
69 void SendNetMessage(
const wxNetMessage & msg,
int nId = wxNOT_FOUND);
70 virtual void AddNetworkPlugin(
const wxString &sClassName,
const wxXmlNode *pConfigNode);
72 wxGISNetServerConnectionList& GetConnections() {
return m_plNetworkConnections; }
76 short m_nMaxConnectoinCount;
77 int m_nConnectionCounter;
78 wxVector<INetPlugin*> m_paNetworkPlugins;
79 wxString m_sServerName;
81 wxGISNetServerConnectionList m_plNetworkConnections;
82 int m_nConnectionIdCounter;
Definition: netevent.h:66
Definition: servernet.h:32
The network server connection interface class.
Definition: netconn.h:33
A Server side Network Service.
Definition: servernet.h:49
The network service base interface class.
Definition: netconn.h:70
Definition: netevent.h:34