Symbian3/PDK/Source/GUID-D043376C-29D2-5196-96F4-15E99CFB5639.dita
changeset 5 f345bda72bc4
parent 1 25a17d01db0c
child 14 578be2adaf3e
--- a/Symbian3/PDK/Source/GUID-D043376C-29D2-5196-96F4-15E99CFB5639.dita	Tue Mar 30 11:42:04 2010 +0100
+++ b/Symbian3/PDK/Source/GUID-D043376C-29D2-5196-96F4-15E99CFB5639.dita	Tue Mar 30 11:56:28 2010 +0100
@@ -10,7 +10,7 @@
 <!DOCTYPE concept
   PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
 <concept id="GUID-D043376C-29D2-5196-96F4-15E99CFB5639" xml:lang="en"><title> RSubConnection
-API Tutorial</title><shortdesc>How to use an <apiname>RSubConnection</apiname>. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
+API Tutorial</title><shortdesc>How to use an <codeph>RSubConnection</codeph>. </shortdesc><prolog><metadata><keywords/></metadata></prolog><conbody>
 <section id="GUID-254081A7-16C0-45C5-B964-4B47D6EB4590"><title>Procedure</title> <ol id="GUID-C81387B5-9ED3-59ED-A5DC-C6FE807B2E1C">
 <li id="GUID-46077726-D57D-5A89-A022-D1EDD45FFE3C"><p>Use the <codeph>Open()</codeph> method
 to open an <xref href="GUID-0AFDA357-EE44-3788-9CAB-162B874134BF.dita"><apiname>RSubConnection</apiname></xref> object on an ESOCK session. </p> <p>The <xref href="GUID-BED8A733-2ED7-31AD-A911-C1F4707C67FD.dita"><apiname>RConnection</apiname></xref> must
@@ -78,10 +78,11 @@
 // Request the Socket to connect to the destination over the default sub-connection
 sock.Connect(destAddr, status);
 </codeblock> </example>
-<section id="GUID-D707232A-A1B5-4F8F-98D4-D6EBC253DF94"><title>Creating a sub-connection - Socket connected over the    
-      SubConnection example</title> <p>The following example shows how an
-application can use a sub-connection through an <xref href="GUID-0AFDA357-EE44-3788-9CAB-162B874134BF.dita"><apiname>RSubConnection</apiname></xref> instance.
-It attaches an <codeph>RSocket</codeph> to the sub-connection. </p> <codeblock id="GUID-F7E8A10E-4A1C-5547-A2F5-783D0A914EA3" xml:space="preserve">RSocketServ ss;
+<section id="GUID-D707232A-A1B5-4F8F-98D4-D6EBC253DF94"><title>Creating a
+sub-connection - Socket connected over the           SubConnection example</title> <p>The
+following example shows how an application can use a sub-connection through
+an <xref href="GUID-0AFDA357-EE44-3788-9CAB-162B874134BF.dita"><apiname>RSubConnection</apiname></xref> instance. It attaches an <codeph>RSocket</codeph> to
+the sub-connection. </p> <codeblock id="GUID-F7E8A10E-4A1C-5547-A2F5-783D0A914EA3" xml:space="preserve">RSocketServ ss;
 RConnection conn;
 RSubConnection subconn;
 RSocket sock;
@@ -116,10 +117,11 @@
 // Request the Socket to connect to the destination over the sub-connection
 sock.Connect(destAddr, status);
 </codeblock> </section>
-<section id="GUID-0766B25A-8073-47E7-A86E-4D172D050064"><title>Creating a new sub-connection - Adding an already connected
-          socket example</title> <p>The following example shows how an application
-can use a sub-connection through an <xref href="GUID-0AFDA357-EE44-3788-9CAB-162B874134BF.dita"><apiname>RSubConnection</apiname></xref> instance.
-It attaches a connected <codeph>RSocket</codeph> to the sub-connection. </p> <codeblock id="GUID-27ACF33C-004D-5538-AF34-175F66D73C6B" xml:space="preserve">RSocketServ ss;
+<section id="GUID-0766B25A-8073-47E7-A86E-4D172D050064"><title>Creating a
+new sub-connection - Adding an already connected           socket example</title> <p>The
+following example shows how an application can use a sub-connection through
+an <xref href="GUID-0AFDA357-EE44-3788-9CAB-162B874134BF.dita"><apiname>RSubConnection</apiname></xref> instance. It attaches a connected <codeph>RSocket</codeph> to
+the sub-connection. </p> <codeblock id="GUID-27ACF33C-004D-5538-AF34-175F66D73C6B" xml:space="preserve">RSocketServ ss;
 RConnection conn;
 RSubConnection subconn;
 RSocket sock;
@@ -161,9 +163,10 @@
 // Wait for socket to added
 User::WaitForRequest(status);
 </codeblock> </section>
-<section id="GUID-BC00A713-123E-401D-9E99-BE52C920D71B"><title>Creating and setting properties for a SubConnection      
-    example</title> <p>The following example shows how an application creates
-and sets the QoS properties. It assigns the properties to a sub-connection. </p> <codeblock id="GUID-6A478B1D-3A6E-5FB1-BD5E-2485A86539C1" xml:space="preserve">// Create the container for all sub connection parameters
+<section id="GUID-BC00A713-123E-401D-9E99-BE52C920D71B"><title>Creating and
+setting properties for a SubConnection           example</title> <p>The following
+example shows how an application creates and sets the QoS properties. It assigns
+the properties to a sub-connection. </p> <codeblock id="GUID-6A478B1D-3A6E-5FB1-BD5E-2485A86539C1" xml:space="preserve">// Create the container for all sub connection parameters
 RSubConParameterBundle subconParams;
 CleanupClosePushL(subconParams);
 
@@ -231,9 +234,10 @@
 RSubConParameterBundle grantedParams;
 subconn.GetParameters(grantedParams);
 </codeblock> </section>
-<section id="GUID-781F3343-94E7-4BF5-8840-0CDFFB0B99B2"><title>Registering for events example</title> <p>The following example
-shows how an application can register events that occur on a sub-connection.
-In this example the application registers for notification of all events. </p> <codeblock id="GUID-B6B202DB-323A-528F-B6F6-60160A140EA5" xml:space="preserve">// Create the container for all sub connection parameters
+<section id="GUID-781F3343-94E7-4BF5-8840-0CDFFB0B99B2"><title>Registering
+for events example</title> <p>The following example shows how an application
+can register events that occur on a sub-connection. In this example the application
+registers for notification of all events. </p> <codeblock id="GUID-B6B202DB-323A-528F-B6F6-60160A140EA5" xml:space="preserve">// Create the container for all sub connection parameters
 RSubConParameterBundle subconParams;
 CleanupClosePushL(subconParams);
 
@@ -309,9 +313,10 @@
 // Event should be CSubconGenEventParamsGranted/CSubconGenEventParamsRejected
 User::WaitForRequest(eventStatus);
 </codeblock> </section>
-<section id="GUID-6FDFB388-B265-4A7B-9752-AC75DF6C3995"><title>Extracting information from received events example</title> <p>The
-following example code shows how to extract the information contained within
-an event notification when it is received. </p> <codeblock id="GUID-BCCE128C-0042-5E36-B22C-35A22A6DFE85" xml:space="preserve">// Create the container for all sub connection parameters
+<section id="GUID-6FDFB388-B265-4A7B-9752-AC75DF6C3995"><title>Extracting
+information from received events example</title> <p>The following example
+code shows how to extract the information contained within an event notification
+when it is received. </p> <codeblock id="GUID-BCCE128C-0042-5E36-B22C-35A22A6DFE85" xml:space="preserve">// Create the container for all sub connection parameters
 RSubConParameterBundle subconParams;
 CleanupClosePushL(subconParams);