The Connection Monitor Server API is a server-client API, that is, an active object-based implementation encapsulating a client-server session interface. The API is defined in rconnmon.h and the library is connmon.lib.
The main use cases of Connection Monitor Server API are:
Connecting and disconnecting.
Getting basic connection level information.
Cancelling a request.
Stopping a connection.
Registering for events.
Catching events.
Using TInt attributes.
Using TUint attributes.
Using TBool attributes.
Using string attributes.
Using packaged attributes.
The following diagram shows the Connection Monitor Server interface class structure.
Figure 1: Interface classes
Clients can access Connection Monitor Server by creating an object from
the RConnectionMonitor
class. This class is derived from RSessionBase
and
it provides methods for retrieving and setting attribute values from/to Connection
Monitor Server.
In order to get notifications from Connection Monitor Server, an application
needs to implement the MConnectionMonitorObserver
class and
its pure virtual EventL
method. The Connection Monitor Server
API calls this method when an event occurs. Different events are implemented
as classes and all of them have a common base class.