Symbian3/SDK/Source/GUID-8E158109-AE22-5216-90E8-63A4BD4CC90B.dita
changeset 8 ae94777fff8f
parent 7 51a74ef9ed63
child 13 48780e181b38
equal deleted inserted replaced
7:51a74ef9ed63 8:ae94777fff8f
    64 a reference to the <codeph>RSocketServ</codeph> session. </p> </li>
    64 a reference to the <codeph>RSocketServ</codeph> session. </p> </li>
    65 <li id="GUID-18FF884F-8930-5851-9ECD-6B9BA55A48B2"><p>Perform sub-connection
    65 <li id="GUID-18FF884F-8930-5851-9ECD-6B9BA55A48B2"><p>Perform sub-connection
    66 operations </p> </li>
    66 operations </p> </li>
    67 <li id="GUID-0A21C702-5125-55D1-8313-E1E7D1949C54"><p>Call <codeph>Close</codeph> to
    67 <li id="GUID-0A21C702-5125-55D1-8313-E1E7D1949C54"><p>Call <codeph>Close</codeph> to
    68 end the sub-session </p> </li>
    68 end the sub-session </p> </li>
    69 </ol> <p id="GUID-F5AEE180-B9A9-542E-84C9-2C505FD75AA4-GENID-1-8-1-8-1-1-10-1-5-1-4-1-3-1-3-5-7"><b>Example 1: Socket (RSocket)</b> </p> <codeblock id="GUID-FB43255E-E22E-5818-B00D-9351DA7B1BFF" xml:space="preserve">RSocketServ ss;
    69 </ol> <p id="GUID-F5AEE180-B9A9-542E-84C9-2C505FD75AA4-GENID-1-10-1-8-1-1-10-1-5-1-4-1-3-1-3-5-7"><b>Example 1: Socket (RSocket)</b> </p> <codeblock id="GUID-FB43255E-E22E-5818-B00D-9351DA7B1BFF" xml:space="preserve">RSocketServ ss;
    70 RSocket sock;
    70 RSocket sock;
    71 
    71 
    72 // Connect to the Sockets Server
    72 // Connect to the Sockets Server
    73 ss.Connect();
    73 ss.Connect();
    74 
    74 
    78 // Perform operations on the socket
    78 // Perform operations on the socket
    79 ...
    79 ...
    80 
    80 
    81 // Close the socket connection
    81 // Close the socket connection
    82 sock.Close();
    82 sock.Close();
    83 </codeblock> <p id="GUID-F5AEE180-B9A9-542E-84C9-2C505FD75AA4-GENID-1-8-1-8-1-1-10-1-5-1-4-1-3-1-3-5-9"><b>Example 2: Connection Management
    83 </codeblock> <p id="GUID-F5AEE180-B9A9-542E-84C9-2C505FD75AA4-GENID-1-10-1-8-1-1-10-1-5-1-4-1-3-1-3-5-9"><b>Example 2: Connection Management
    84 (RConnection)</b> </p> <codeblock id="GUID-BA4575AA-B370-594C-AAE0-8D2D970CA4E0" xml:space="preserve">RSocketServ ss;
    84 (RConnection)</b> </p> <codeblock id="GUID-BA4575AA-B370-594C-AAE0-8D2D970CA4E0" xml:space="preserve">RSocketServ ss;
    85 RConnection conn;
    85 RConnection conn;
    86 
    86 
    87 // Connect to the Sockets Server
    87 // Connect to the Sockets Server
    88 ss.Connect();
    88 ss.Connect();