Symbian3/Examples/guid-6013a680-57f9-415b-8851-c4fa63356636/secureclientandserver_8h.html
week 10 bug fix submission: Bug 1892, Bug 1897, Bug 1319. Also 3 or 4 documents were found to contain code blocks with SFL, which has been fixed. Partial fix for broken links, links to Forum Nokia, and the 'Symbian platform' terminology issues.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>TB10.1 Example Applications: examples/Base/IPC/secureserver/secureclientandserver.h File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.3 -->
<h1>examples/Base/IPC/secureserver/secureclientandserver.h File Reference</h1>
<p>
<a href="secureclientandserver_8h-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Enumerations</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2">TSecureServerRequest</a> { <br>
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2eeea637ffeed72685729b2eb5c0a1d06">ESecureServerCreateSubSession</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2019d5723fe668d1d7092919022bb7cd8">ESecureServerCloseSubSession</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2340b8bb36e8a83dedc23b33ad454cc41">ESecureServerInitSubSession</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c28e272085a7b510b91c0e210e46eb687e">ESecureServerCloseSession</a>,
<br>
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2ac8031c2e6141daa00372a90dbea0686">ESecureServerValue</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c27fc92e555feb4e8e8cacd2ea4508b4ed">ESecureServerResourceCount</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c21b3935c0f5f79f45a27de1fa32654e17">ESecureServerIncrease</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c29c27793f5b6b3beb6aad11d0bf953144">ESecureServerIncreaseBy</a>,
<br>
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c242948fe36fdaab2a2d9a4328ea3eedec">ESecureServerDecrease</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c20bcce01e7f822786412221374e7a8b76">ESecureServerDecreaseBy</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2a9d1e980d9ed0a23782b98761d7e57d7">ESecureServerReset</a>,
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c21c7338d8bb93ce1b82088d1282516d3d">ESecureServerSaveCounter</a>,
<br>
<a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2f1d352024cd4a379c9dd9406152b9592">ESecureServerSetCounterFromFile</a>
<br>
}</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#c31a03d737c6ab16ba55ceab73d57b71">TSecureServerLeave</a> { <a class="el" href="secureclientandserver_8h.html#c31a03d737c6ab16ba55ceab73d57b71e3a6b8e17c25d02a3ae9ca7362ba4d0c">ENonNumericString</a> = 99
}</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#5eadd4429627d82193b37536d4faa03a">_LIT</a> (KSecureServerName,"SecureServer")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">IMPORT_C TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#f110d475e98114c0f2a42b7313af8e67">StartThread</a> (RThread &aServerThread)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a44b67f5bd192f795516c61a404c49c5"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="a44b67f5bd192f795516c61a404c49c5" args="(KTextConsoleTitle,"Secure Server Console")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextConsoleTitle,"Secure Server Console")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9935f72ce83f6c42ca010bfad2381b43"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="9935f72ce83f6c42ca010bfad2381b43" args="(KTextFailed," failed, leave code = %d")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextFailed," failed, leave code = %d")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="c81b0ae4c5093cd9997583ca1d62e74a"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="c81b0ae4c5093cd9997583ca1d62e74a" args="(KTextPressAnyKey," [press any key]\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTextPressAnyKey," [press any key]\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5ced82582356fd101e490423d7dca696"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="5ced82582356fd101e490423d7dca696" args="(KTxtTestingCountServer,"Testing the count server test with 2 client sub sessions; these represent independent counters \n\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtTestingCountServer,"Testing the count server test with 2 client sub sessions; these represent independent counters \n\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3da8b2ce1bac05e1fb81cc1df3815bac"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="3da8b2ce1bac05e1fb81cc1df3815bac" args="(KTxtInitCounterAWith,"\nInitialize counter A with : ")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtInitCounterAWith,"\nInitialize counter A with : ")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="83d6c2387c7508a4bfac3bbe18374730"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="83d6c2387c7508a4bfac3bbe18374730" args="(KTxtInitCounterBWith,"\nInitialize counter B with : ")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtInitCounterBWith,"\nInitialize counter B with : ")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="627ec66ab6493c54e9de7d33b6cefbeb"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="627ec66ab6493c54e9de7d33b6cefbeb" args="(KTxtInitCounterFailed,"\nSetting the counter from string failed: non-numeric character detected\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtInitCounterFailed,"\nSetting the counter from string failed: non-numeric character detected\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2886f7bfd65b3571f32ce88b1ac5e5ce"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="2886f7bfd65b3571f32ce88b1ac5e5ce" args="(KTxtInitCounterSucceeded,"\nSetting the counter from string succeeded\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtInitCounterSucceeded,"\nSetting the counter from string succeeded\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="b8f927064c3e79d258c0cb323e1e4199"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="b8f927064c3e79d258c0cb323e1e4199" args="(KTxtGetCounterAValue,"Getting counterA value from server: %d \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtGetCounterAValue,"Getting counterA value from server: %d \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f6a8628c5bde31e2f190f7a5a53ec991"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="f6a8628c5bde31e2f190f7a5a53ec991" args="(KTxtGetCounterBValue,"Getting counterB value from server: %d \n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtGetCounterBValue,"Getting counterB value from server: %d \n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="8f8dca1513a0a5a6d26ab55142da1fdc"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="8f8dca1513a0a5a6d26ab55142da1fdc" args="(KTxtTransactionId,"***\nTransaction ID of the session : %d\n***\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtTransactionId,"***\nTransaction ID of the session : %d\n***\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="dbb0f0ff26cc435d54237e6857c15577"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="dbb0f0ff26cc435d54237e6857c15577" args="(KMsgPressAnyKey," (press any key to continue)\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KMsgPressAnyKey," (press any key to continue)\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4f8e3b106dd74f45993958c668ef7a6b"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="4f8e3b106dd74f45993958c668ef7a6b" args="(KTxtOption,"\nEnter 1 to initialise from file\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtOption,"\nEnter 1 to initialise from file\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="51c5db8fd4df6e6d0e59312a35d7fe66"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="51c5db8fd4df6e6d0e59312a35d7fe66" args="(KTxtInitFromFile,"\nInitialising from file, value = %d\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtInitFromFile,"\nInitialising from file, value = %d\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9e263f2de1821cddf47afcab5d05bd94"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="9e263f2de1821cddf47afcab5d05bd94" args="(KTxtTransactionID,"\nEnter the Transaction ID for the session\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtTransactionID,"\nEnter the Transaction ID for the session\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9bbc182e7bfd5cf9b511a92f9277ef8a"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="9bbc182e7bfd5cf9b511a92f9277ef8a" args="(KTxtSaveToFile,"\nTo save the value of counter A press 'a' and for counter B press 'b'..\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtSaveToFile,"\nTo save the value of counter A press 'a' and for counter B press 'b'..\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="250ee6e3d2a05100e7a82110851073f9"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="250ee6e3d2a05100e7a82110851073f9" args="(KTxtSelectCounter,"\nYou selected counter %c\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtSelectCounter,"\nYou selected counter %c\n")</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="30763216d0442e6f4a95152ee4aa9525"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="30763216d0442e6f4a95152ee4aa9525" args="(KTxtSaveCounter,"\nSaving Counter Value..\n")" -->
</td><td class="memItemRight" valign="bottom"><b>_LIT</b> (KTxtSaveCounter,"\nSaving Counter Value..\n")</td></tr>
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="6c2390f8a2966c6633b3291aafb96bac"></a><!-- doxytag: member="secureclientandserver.h::KDefaultMessageSlots" ref="6c2390f8a2966c6633b3291aafb96bac" args="" -->
const TUint </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#6c2390f8a2966c6633b3291aafb96bac">KDefaultMessageSlots</a> = 4</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const TUint </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#2c7a31de3ef992e8aa4c26453c32fc5f">KSecureServMajorVersionNumber</a> = 0</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="278c356b18a5bf229401b22dc41f4a93"></a><!-- doxytag: member="secureclientandserver.h::KSecureServMinorVersionNumber" ref="278c356b18a5bf229401b22dc41f4a93" args="" -->
const TUint </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#278c356b18a5bf229401b22dc41f4a93">KSecureServMinorVersionNumber</a> = 1</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2f7af8cbb138c526da5559f77f5764d"></a><!-- doxytag: member="secureclientandserver.h::KSecureServBuildVersionNumber" ref="d2f7af8cbb138c526da5559f77f5764d" args="" -->
const TUint </td><td class="memItemRight" valign="bottom"><a class="el" href="secureclientandserver_8h.html#d2f7af8cbb138c526da5559f77f5764d">KSecureServBuildVersionNumber</a> = 1</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_r_secure_sub_session.html">RSecureSubSession</a> </dd></dl>
<p>Definition in file <a class="el" href="secureclientandserver_8h-source.html">secureclientandserver.h</a>.</p>
<hr><h2>Enumeration Type Documentation</h2>
<a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2"></a><!-- doxytag: member="secureclientandserver.h::TSecureServerRequest" ref="19a3f57ac2d7b8518f6682573ac637c2" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="secureclientandserver_8h.html#19a3f57ac2d7b8518f6682573ac637c2">TSecureServerRequest</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Op codes supported by the server. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2eeea637ffeed72685729b2eb5c0a1d06"></a><!-- doxytag: member="ESecureServerCreateSubSession" ref="19a3f57ac2d7b8518f6682573ac637c2eeea637ffeed72685729b2eb5c0a1d06" args="" -->ESecureServerCreateSubSession</em> </td><td>
Op code to create a subsession. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2019d5723fe668d1d7092919022bb7cd8"></a><!-- doxytag: member="ESecureServerCloseSubSession" ref="19a3f57ac2d7b8518f6682573ac637c2019d5723fe668d1d7092919022bb7cd8" args="" -->ESecureServerCloseSubSession</em> </td><td>
Op code to close a subsession. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2340b8bb36e8a83dedc23b33ad454cc41"></a><!-- doxytag: member="ESecureServerInitSubSession" ref="19a3f57ac2d7b8518f6682573ac637c2340b8bb36e8a83dedc23b33ad454cc41" args="" -->ESecureServerInitSubSession</em> </td><td>
Op code to initialise the counter of the subsession. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c28e272085a7b510b91c0e210e46eb687e"></a><!-- doxytag: member="ESecureServerCloseSession" ref="19a3f57ac2d7b8518f6682573ac637c28e272085a7b510b91c0e210e46eb687e" args="" -->ESecureServerCloseSession</em> </td><td>
Op code to close a session. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2ac8031c2e6141daa00372a90dbea0686"></a><!-- doxytag: member="ESecureServerValue" ref="19a3f57ac2d7b8518f6682573ac637c2ac8031c2e6141daa00372a90dbea0686" args="" -->ESecureServerValue</em> </td><td>
Op code to get the counter value from the server. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c27fc92e555feb4e8e8cacd2ea4508b4ed"></a><!-- doxytag: member="ESecureServerResourceCount" ref="19a3f57ac2d7b8518f6682573ac637c27fc92e555feb4e8e8cacd2ea4508b4ed" args="" -->ESecureServerResourceCount</em> </td><td>
Op code to get the resource count from the server. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c21b3935c0f5f79f45a27de1fa32654e17"></a><!-- doxytag: member="ESecureServerIncrease" ref="19a3f57ac2d7b8518f6682573ac637c21b3935c0f5f79f45a27de1fa32654e17" args="" -->ESecureServerIncrease</em> </td><td>
Op code to increase the counter value by one. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c29c27793f5b6b3beb6aad11d0bf953144"></a><!-- doxytag: member="ESecureServerIncreaseBy" ref="19a3f57ac2d7b8518f6682573ac637c29c27793f5b6b3beb6aad11d0bf953144" args="" -->ESecureServerIncreaseBy</em> </td><td>
Op code to increase the counter value by a value greater than one. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c242948fe36fdaab2a2d9a4328ea3eedec"></a><!-- doxytag: member="ESecureServerDecrease" ref="19a3f57ac2d7b8518f6682573ac637c242948fe36fdaab2a2d9a4328ea3eedec" args="" -->ESecureServerDecrease</em> </td><td>
Op code to decrease the counter value by one. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c20bcce01e7f822786412221374e7a8b76"></a><!-- doxytag: member="ESecureServerDecreaseBy" ref="19a3f57ac2d7b8518f6682573ac637c20bcce01e7f822786412221374e7a8b76" args="" -->ESecureServerDecreaseBy</em> </td><td>
Op code to increase the counter value by a value greater than one. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2a9d1e980d9ed0a23782b98761d7e57d7"></a><!-- doxytag: member="ESecureServerReset" ref="19a3f57ac2d7b8518f6682573ac637c2a9d1e980d9ed0a23782b98761d7e57d7" args="" -->ESecureServerReset</em> </td><td>
Op code to reset the counter to default value. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c21c7338d8bb93ce1b82088d1282516d3d"></a><!-- doxytag: member="ESecureServerSaveCounter" ref="19a3f57ac2d7b8518f6682573ac637c21c7338d8bb93ce1b82088d1282516d3d" args="" -->ESecureServerSaveCounter</em> </td><td>
Op code to save the counter value to the counter.dat file. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="19a3f57ac2d7b8518f6682573ac637c2f1d352024cd4a379c9dd9406152b9592"></a><!-- doxytag: member="ESecureServerSetCounterFromFile" ref="19a3f57ac2d7b8518f6682573ac637c2f1d352024cd4a379c9dd9406152b9592" args="" -->ESecureServerSetCounterFromFile</em> </td><td>
Op code to set the counter value from the counter.dat file. </td></tr>
</table>
</dl>
<p>Definition at line <a class="el" href="secureclientandserver_8h-source.html#l00052">52</a> of file <a class="el" href="secureclientandserver_8h-source.html">secureclientandserver.h</a>.</p>
</div>
</div><p>
<a class="anchor" name="c31a03d737c6ab16ba55ceab73d57b71"></a><!-- doxytag: member="secureclientandserver.h::TSecureServerLeave" ref="c31a03d737c6ab16ba55ceab73d57b71" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="secureclientandserver_8h.html#c31a03d737c6ab16ba55ceab73d57b71">TSecureServerLeave</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Defines the leave code of the server. <dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="c31a03d737c6ab16ba55ceab73d57b71e3a6b8e17c25d02a3ae9ca7362ba4d0c"></a><!-- doxytag: member="ENonNumericString" ref="c31a03d737c6ab16ba55ceab73d57b71e3a6b8e17c25d02a3ae9ca7362ba4d0c" args="" -->ENonNumericString</em> </td><td>
Leave code if the string that sets the counter contains non-numeric characters. For example, the string "ab" is invalid and "10" is valid. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_c_secure_server_sub_session.html#97ed872aae87b8cb76d6fa101a52303f">CSecureServerSubSession::SetFromStringL</a> </dd></dl>
</td></tr>
</table>
</dl>
<p>Definition at line <a class="el" href="secureclientandserver_8h-source.html#l00111">111</a> of file <a class="el" href="secureclientandserver_8h-source.html">secureclientandserver.h</a>.</p>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="5eadd4429627d82193b37536d4faa03a"></a><!-- doxytag: member="secureclientandserver.h::_LIT" ref="5eadd4429627d82193b37536d4faa03a" args="(KSecureServerName,"SecureServer")" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">_LIT </td>
<td>(</td>
<td class="paramtype">KSecureServerName </td>
<td class="paramname">, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">"SecureServer" </td>
<td class="paramname"></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Name of the server.
</div>
</div><p>
<a class="anchor" name="f110d475e98114c0f2a42b7313af8e67"></a><!-- doxytag: member="secureclientandserver.h::StartThread" ref="f110d475e98114c0f2a42b7313af8e67" args="(RThread &aServerThread)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">IMPORT_C TInt StartThread </td>
<td>(</td>
<td class="paramtype">RThread & </td>
<td class="paramname"> <em>aServerThread</em> </td>
<td> ) </td>
<td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Create the thread that will act as the server. This function is exported from the DLL and called by the client.<p>
Note that a server can also be implemented as a separate executable (i.e. as a separate process).<p>
Creates the server thread. If the server is not running, the function starts the server thread. The function <a class="el" href="class_c_secure_server.html#97b0ca5c5966bba8c0cee269d1909b75">CSecureServer::ThreadFunction()</a> contains the code that is called when the server thread starts. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>aServerThread</em> </td><td>The handle to the server thread. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>KErrNone if successful, or an error code returned by RThread::Create(). </dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_c_secure_server.html#97b0ca5c5966bba8c0cee269d1909b75">CSecureServer::ThreadFunction()</a> </dd></dl>
<p>Definition at line <a class="el" href="_complex_server_8cpp-source.html#l00084">84</a> of file <a class="el" href="_complex_server_8cpp-source.html">ComplexServer.cpp</a>.</p>
</div>
</div><p>
<hr><h2>Variable Documentation</h2>
<a class="anchor" name="2c7a31de3ef992e8aa4c26453c32fc5f"></a><!-- doxytag: member="secureclientandserver.h::KSecureServMajorVersionNumber" ref="2c7a31de3ef992e8aa4c26453c32fc5f" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const TUint <a class="el" href="secureclientandserver_8h.html#2c7a31de3ef992e8aa4c26453c32fc5f">KSecureServMajorVersionNumber</a> = 0 </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Version numbers of the server.
<p>Definition at line <a class="el" href="secureclientandserver_8h-source.html#l00043">43</a> of file <a class="el" href="secureclientandserver_8h-source.html">secureclientandserver.h</a>.</p>
</div>
</div><p>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:02 2010 for TB10.1 Example Applications by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
</body>
</html>