diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-7F6283C0-46E8-427C-B6A9-FB274A7D2C15.dita --- a/Symbian3/SDK/Source/GUID-7F6283C0-46E8-427C-B6A9-FB274A7D2C15.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-7F6283C0-46E8-427C-B6A9-FB274A7D2C15.dita Tue Jul 20 12:00:49 2010 +0100 @@ -12,38 +12,38 @@ Opening a Connection to a SNAP by specifying SNAP TypeExtended Connection Preferences API can be used by applications to set the SNAP type prior to establishing a connection. -

Specifying +

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.

- -Connect to socket server . + +Connect to socket server . RSocketServ ss; ss.Connect(); - Open a RConnection object. + Open a RConnection object. RConnection conn; conn.Open( ss ); -Create a connection +Create a connection preference list and extended connection preferences object. TConnPrefList prefList; TExtendedConnPref preferences; -Set the SNAP type +Set the SNAP type using TExtendedConnPref::SetSnapPurpose(). preferences.SetSnapPurpose( CMManager::ESnapPurposeInternet ); -Append the extended +Append the extended connection preferences into connection preference list. prefList.AppendL( &preferences ); -Start a connection +Start a connection with connection preferences. conn.Start( prefList ); -

The application +

The application is connected to Internet SNAP.

Additional