23 #include "wxgis/net/servernet.h"
24 #include "wxgis/net/netfactory.h"
44 bool CreateUDPNotifier(
void);
45 bool CreateListenSocket(
void);
47 virtual bool Start(
INetService* pNetService,
const wxXmlNode* pConfig);
48 virtual bool Stop(
void);
50 virtual void OnUDPServerEvent(wxSocketEvent& event);
51 virtual void OnTCPServerEvent(wxSocketEvent& event);
53 int m_nPort, m_nAdvPort;
56 wxDatagramSocket *m_udp_socket;
57 wxSocketServer* m_listeningSocket;
80 virtual bool Connect(
void);
81 virtual bool Disconnect(
void);
82 virtual wxString GetName(
void)
const {
return m_sConnName;};
86 virtual bool HasAttributes(
void)
const {
return true;};
89 virtual wxString GetLastError(
void)
const;
95 virtual void OnSocketEvent(wxSocketEvent& event);
99 wxString m_sCryptPass;
109 DECLARE_EVENT_TABLE()
130 virtual wxString GetName(
void)
const {
return wxString(_(
"TCP/IP Network"));};
131 virtual bool StartServerSearch();
132 virtual bool StopServerSearch();
133 virtual void Serialize(wxXmlNode* pConfigNode,
bool bSave =
true);
136 virtual unsigned short GetAdvPort(
void){
return m_nAdvPort;};
137 virtual unsigned short GetPort(
void){
return m_nPort;};
140 virtual void OnBroadcastEvent(wxSocketEvent& event);
142 wxDatagramSocket *m_udp_socket;
144 unsigned short m_nPort, m_nAdvPort;
146 DECLARE_EVENT_TABLE()
The JSON value class implementation.
Definition: jsonval.h:91
The network connection factory interface class.
Definition: netfactory.h:33
The network connection interface class.
Definition: netconn.h:88
virtual bool SetAttributes(const wxJSONValue &oProperties)=0
Set Properties of plugin.
Definition: servernet.h:32
A Server side TCPNetworkPlugin.
Definition: tcp.h:32
virtual void Serialize(wxXmlNode *pConfigNode, bool bSave=true)
Store Properties of Factory.
Definition: netfactory.cpp:65
virtual wxJSONValue GetAttributes(void) const =0
Get Properties of plugin.
The network service base interface class.
Definition: netconn.h:70