Extended Connection Preferences API can be used by applications to set the SNAP type prior to establishing a connection.
Specifying SNAP type enables the applications to start a connection to a specific SNAP (For example, Internet SNAP or Intranet SNAP) without iterating through the SNAP list to identify the appropriate type.
RSocketServ ss; ss.Connect();
RConnection conn; conn.Open( ss );
TConnPrefList prefList; TExtendedConnPref preferences;
preferences.SetSnapPurpose( CMManager::ESnapPurposeInternet );
prefList.AppendL( &preferences );
conn.Start( prefList );
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License v1.0.