Public Member Functions | Protected Attributes | Friends

wosh::NetworkProtocol Class Reference
[Core-Interfaces]

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>

List of all members.

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 PropertiesProvidergetProperties () const
PropertiesProvidergetProperties ()
const MethodsProvidergetMethods () const
MethodsProvidergetMethods ()
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

Detailed Description

Interface of a generic communication protocol, handles properties and manager (dis)connection of custom wosh::NetworkChannel.

See also:
wosh::NetworkChannel
wosh::NetworkManager
Version:
Id:
NetworkProtocol.h 3775 2011-01-01 16:38:17Z alex
Author:
Alessandro Polo

Definition at line 86 of file NetworkProtocol.h.


Constructor & Destructor Documentation

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.


Friends And Related Function Documentation

friend class NetworkManager [friend]

my big brother

Definition at line 162 of file NetworkProtocol.h.


Member Data Documentation

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.

my methods

Definition at line 157 of file NetworkProtocol.h.

my configuration

Definition at line 156 of file NetworkProtocol.h.


The documentation for this class was generated from the following files:

Generated on Tue Feb 8 2011 09:33:31 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework