Defines a callback interface that every application wishing to receive PeerHood events must implement.
Public Methods
-
void Notify(TEventType aEvent, const std::string& aAddress)
- Receives PeerHood notifications.
-
void NewConnection(const unsigned short aPort, MAbstractConnection* aConnection, int aConnectionId)
- Default handler for a new connection notification.
Documentation
Defines the default callback interface that every application wishing
to receive PeerHood events must inherit. Events are generated from actions
like abnormal disconnections, newly established connections, changes in the
state of a service/device under monitoring etc.
void Notify(TEventType aEvent, const std::string& aAddress)
-
Receives notifications from the PeerHood library. Users of the PeerHood
are strongly encouraged to implement threir own versions of this method
because the default implementation takes no action in regard to the reveiced
events.
- Parameters:
- aEvent - The type of the occurred event.
aAddress - The address of the device that the event concerns.
- Returns:
- none
void NewConnection(const unsigned short aPort, MAbstractConnection* aConnection, int aConnectionId)
-
Default handler for a new connection notification. The default handler
silently closes the offered connection and deletes the connection object so
in order to do something usefull a new version more suitable for the
application in question should be introduced.
- Returns:
- none
- This class has no child classes.
- See Also:
- CPeerHood
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.