Interface of a generic communication protocol, handles properties and manager (dis)connection of custom wosh::NetworkChannel. More...
#include <H:/WOSH/win32_vc2010/src/core/NetworkProtocol.h>
Public Member Functions | |
| NetworkProtocol () | |
| Empty constructor. | |
| virtual | ~NetworkProtocol () |
| Empty destructor. | |
NetworkProtocol interface | |
| virtual WRESULT | listenChannel (const std::string &protocol_string, unsigned long timeout=LIMIT_ULONG_MAX)=0 |
| virtual WRESULT | connectChannel (const std::string &protocol_string, const WoshHost *host=NULL, unsigned long timeout=LIMIT_ULONG_MAX)=0 |
| virtual WRESULT | connectChannel (const std::vector< std::string > &protocolsAvailable, const WoshHost *host=NULL, unsigned long timeout=LIMIT_ULONG_MAX)=0 |
Getters | |
| virtual const char * | getProtocolPrefix () const =0 |
| virtual bool | supportProtocol (const std::string &protocol_string) const |
| virtual int | getPriority () const =0 |
| virtual int | getServersCount () const =0 |
| virtual int | getClientsCount () const =0 |
| virtual std::string | getBriefStatus () const =0 |
| const PropertiesProvider & | getProperties () const |
| PropertiesProvider & | getProperties () |
| const MethodsProvider & | getMethods () const |
| MethodsProvider & | getMethods () |
Setters | |
| WRESULT | setListener (INetworkProtocolListener *npl) |
IPropertiesProviderListener interface | |
| virtual bool | readingProperty (Property *, const PropertiesProvider *) |
| virtual bool | updatingProperty (bool &do_update, const Variant &value_proposed, Property &property_current, const PropertiesProvider *source) |
Protected Attributes | |
| PropertiesProvider | Properties |
| my configuration | |
| MethodsProvider | Methods |
| my methods | |
| LogContext | Log |
| my logger | |
| INetworkProtocolListener * | listener |
| class listening for events | |
Friends | |
| class | NetworkManager |
| my big brother | |
Interface of a generic communication protocol, handles properties and manager (dis)connection of custom wosh::NetworkChannel.
Definition at line 86 of file NetworkProtocol.h.
| wosh::NetworkProtocol::NetworkProtocol | ( | ) |
Empty constructor.
Definition at line 53 of file NetworkProtocol.cpp.
References _METHOD_ListMethods, wosh::LOG_DEBUG, and wosh::LOG_INFO.
| wosh::NetworkProtocol::~NetworkProtocol | ( | ) | [virtual] |
Empty destructor.
Definition at line 90 of file NetworkProtocol.cpp.
friend class NetworkManager [friend] |
my big brother
Definition at line 162 of file NetworkProtocol.h.
INetworkProtocolListener* wosh::NetworkProtocol::listener [protected] |
class listening for events
Definition at line 160 of file NetworkProtocol.h.
LogContext wosh::NetworkProtocol::Log [mutable, protected] |
my logger
Definition at line 158 of file NetworkProtocol.h.
MethodsProvider wosh::NetworkProtocol::Methods [mutable, protected] |
my methods
Definition at line 157 of file NetworkProtocol.h.
PropertiesProvider wosh::NetworkProtocol::Properties [mutable, protected] |
my configuration
Definition at line 156 of file NetworkProtocol.h.