Symbian3/SDK/Source/GUID-DBF6760F-D209-4B8F-89D5-A7EFFF7959E2.dita
author Dominic Pinkman <dominic.pinkman@nokia.com>
Fri, 11 Jun 2010 12:39:03 +0100
changeset 8 ae94777fff8f
child 13 48780e181b38
permissions -rw-r--r--
Week 23 contribution of SDK documentation content. See release notes for details. Fixes bugs Bug 2714, Bug 462.

<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies) All rights reserved. -->
<!-- This component and the accompanying materials are made available under the terms of the License 
"Eclipse Public License v1.0" which accompanies this distribution, 
and is available at the URL "http://www.eclipse.org/legal/epl-v10.html". -->
<!-- Initial Contributors:
    Nokia Corporation - initial contribution.
Contributors: 
-->
<!DOCTYPE task
  PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="GUID-DBF6760F-D209-4B8F-89D5-A7EFFF7959E2" xml:lang="en"><title>Starting
the connection through the destination network</title><shortdesc>After you have selected the destination network to be used, you
can open the data connection.</shortdesc><prolog><metadata><keywords/></metadata></prolog><taskbody>
<context id="GUID-FEDFCAED-E19D-411A-8A17-7B11C42AB4AE">       <p>To open
the data connection with the selected destination network:</p>     </context>
<steps id="GUID-4DD07DEC-6017-4237-BE46-1D69E5FBD744-GENID-1-10-1-14-1-1-7-1-6-1-3-2">
<step id="GUID-9A69E5AD-E938-4092-A8C2-CB65C37C8962-GENID-1-10-1-14-1-1-7-1-6-1-3-2-1"><cmd>Start the connection
through the Internet destination network using the Connection Manager API.</cmd>
</step>
<step id="GUID-87BB9B2C-386E-40BC-B5C8-838169A85CDD"><cmd>Select the best available access point within the Internet destination
network using the Connection Manager API.</cmd>
<info><p>RConnection handle is returned to the network. The connection can
now be used.</p></info>
</step>
</steps>
<example><codeblock xml:space="preserve">RSocketServ ss;

// Connect to ESOCK
ss.Connect();

// Open an RConnection object.  Note that you must provide an RSocketServ object
RConnection conn;
conn.Open( ss );

// Create overrides
TConnSnapPref prefs
prefs.SetSnap( 4 );

// Start an Outgoing Connection with overrides
conn.Start( prefs );
</codeblock></example>
</taskbody></task>