Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

No notification from Connection Monitor Server API (Known Issue)

From Wiki
Jump to: navigation, search

The Connection Monitor Server API (ConnMon) does not send a notification if two different applications connect to the network through the same access point(AP) and using the same network bearer.

Article Metadata
Tested with
Devices(s): All(S60)
Platform(s): S60 3rd Edition, S60 3rd Edition FP1, S60 3rd Edition FP2, S60 5th Edition
S60 5th Edition
S60 3rd Edition FP2
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Keywords: EConnMonCreateConnection
Created: User:Kbwiki (23 Dec 2009)
Last edited: hamishwillee (30 May 2013)


The Connection Monitor Server API (ConnMon) sends a notification (EConnMonCreateConnection) when a new connection is created. However, when there's already an active connection and another application requests a connection, the existing connection is shared between both applications. ConnMon does not send a notification in this situation as no new connection is established.

A new connection would be established only if the application specifically requests a different bearer (for instance, WLAN vs. GPRS) or a connection method (IAP) with a different access point name (APN).


Instead of monitoring subconnections, it's possible to request connection attributes from the Connection Monitor Server. This can be done by using the KClientInfo parameter for the function RConnectionMonitor::GetPckgAttribute().

With the following code, it's possible to detect if there are other applications using the same connection:

 TRequestStatus status; 
TConnMonClientEnumBuf clientBuf;
// connectionId is the ID value of a specific connection. Connection IDs
// can be obtained with RConnectionMonitor::GetConnectionInfo()
monitor.GetPckgAttribute( connectionId, 0, KClientInfo, clientBuf, status );
User::WaitForRequest( status );
if( status.Int() == KErrNone )
// Count of the clients using the connection
TUint count = clientBuf().iCount;
// The uid of the first client (there are max 10 UIDs in the array)
TUid uid = clientBuf().iUid[0];

The KClientInfo attribute is used to retrieve the client UID for all clients using a specific connection. The information is transferred through a package of type TConnMonClientEnumBuf. The package class has a fixed size array, and it is limited to a maximum of 10 (KConnMonMaxClientUids) UIDs.

This page was last modified on 30 May 2013, at 03:37.
78 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.