|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
|
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> |
|
3 <title>TB10.1 Example Applications: CPanConnections Class Reference</title> |
|
4 <link href="doxygen.css" rel="stylesheet" type="text/css"> |
|
5 <link href="tabs.css" rel="stylesheet" type="text/css"> |
|
6 </head><body> |
|
7 <!-- Generated by Doxygen 1.5.3 --> |
|
8 <h1>CPanConnections Class Reference</h1><!-- doxytag: class="CPanConnections" --> |
|
9 <p> |
|
10 <a href="class_c_pan_connections-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> |
|
11 <tr><td></td></tr> |
|
12 <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> |
|
13 <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#6f1e2360d9b792b4eb67233dd0757d41">~CPanConnections</a> ()</td></tr> |
|
14 |
|
15 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="38e615144ac8636db223dfab4d84dedb"></a><!-- doxytag: member="CPanConnections::CancelRecvFrom" ref="38e615144ac8636db223dfab4d84dedb" args="()" --> |
|
16 void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#38e615144ac8636db223dfab4d84dedb">CancelRecvFrom</a> ()</td></tr> |
|
17 |
|
18 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#34c21dab326042522928cc4796c92df2">StartConnection</a> (TBTDevAddr *aDevAddr, TBool aUsePANNotifier, TBool aUseTcpTransport)</td></tr> |
|
19 |
|
20 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#6ca7760ec4140c02725dc8a29c061ba9">StopConnection</a> ()</td></tr> |
|
21 |
|
22 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#0eec65826c0323a9ab6e85b0739bbc44">SetActivePanConn</a> (TUint aConnIndex)</td></tr> |
|
23 |
|
24 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#c3da88ca7fc0fb64434fd84f81cddc98">SetLocalIpAddrL</a> (TUint32 aAddr)</td></tr> |
|
25 |
|
26 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#46d8bac828d453473cec94a8602468ac">SetFixedRoleL</a> (TSide aSide, TUint aRole)</td></tr> |
|
27 |
|
28 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#0ce9d37dc00e0572bb5c7f0b5befa07b">PrintConns</a> ()</td></tr> |
|
29 |
|
30 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#0cab5de7e4afe736c2469735640ec1ba">TcpIpBindAndListen</a> ()</td></tr> |
|
31 |
|
32 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#acbdae817598b72658b6b93833ee0975">TcpIpBindAndConnect</a> ()</td></tr> |
|
33 |
|
34 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#514cfbe2ba7d674954dbc60c85ab7018">ListenDoCancel</a> ()</td></tr> |
|
35 |
|
36 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#070d37e1361be12f2dc44fee0653597b">ConnectDoCancel</a> ()</td></tr> |
|
37 |
|
38 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#1c722de1ae920eb3160284c18c6bed99">CloseTcpIpSocketConnect</a> ()</td></tr> |
|
39 |
|
40 <tr><td class="memItemLeft" nowrap align="right" valign="top">TUint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#1f0cd7f4bcfd821937b31c7daaf9af62">GetRemoteIpAddr</a> () const </td></tr> |
|
41 |
|
42 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#99afb06bc3e1614ec86be77da414e054">SetRemoteIpAddr</a> (TUint32 aAddr)</td></tr> |
|
43 |
|
44 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#2487d17afe967008336124ab48a744ff">AcceptNewSocket</a> ()</td></tr> |
|
45 |
|
46 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#f50cb29f97f35de684d03bf5211671f2">PrintTcpSocketConnections</a> ()</td></tr> |
|
47 |
|
48 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#f113f2b06e495b97ab788e3f0030b617">GetLocalRole</a> () const </td></tr> |
|
49 |
|
50 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#f442c51cea29f54570235995428a7bcb">CancelIap</a> ()</td></tr> |
|
51 |
|
52 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#526bf1de502ce10fcd0630e39aabc52e">StopIAP</a> ()</td></tr> |
|
53 |
|
54 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#36b2c2c4943f29420aa4ee6208e7c266">CloseAllTcpIpSockets</a> ()</td></tr> |
|
55 |
|
56 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#28a3b8b1bc3dcd590e6899e8ac08ce53">CloseCurrentTcpIpSocket</a> ()</td></tr> |
|
57 |
|
58 <tr><td class="memItemLeft" nowrap align="right" valign="top">TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#6c2066f03c9d53e73206cff1dae7aa5b">ActiveConnCount</a> ()</td></tr> |
|
59 |
|
60 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe4f439df6bed9bce936292e6b87d098"></a><!-- doxytag: member="CPanConnections::CancelAllOperations" ref="fe4f439df6bed9bce936292e6b87d098" args="()" --> |
|
61 void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#fe4f439df6bed9bce936292e6b87d098">CancelAllOperations</a> ()</td></tr> |
|
62 |
|
63 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="1f957a9c996254f7d243f3157497e3a8"></a><!-- doxytag: member="CPanConnections::UdpBind" ref="1f957a9c996254f7d243f3157497e3a8" args="()" --> |
|
64 TInt </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#1f957a9c996254f7d243f3157497e3a8">UdpBind</a> ()</td></tr> |
|
65 |
|
66 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#d3dc3627a7c944f0ffa82caa9f024166">RunL</a> ()</td></tr> |
|
67 |
|
68 <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#2451289abf1a401dc5d343afa4eeaf86">DoCancel</a> ()</td></tr> |
|
69 |
|
70 <tr><td class="memItemLeft" nowrap align="right" valign="top">RArray< TInetAddr > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#bb1b1dc6e61cc3a4860e5480b2bd6c37">RemoteNames</a> ()</td></tr> |
|
71 |
|
72 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9d82cc28dec893b9513dfac3b3f047c0"></a><!-- doxytag: member="CPanConnections::GetSocket" ref="9d82cc28dec893b9513dfac3b3f047c0" args="()" --> |
|
73 RSocket & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#9d82cc28dec893b9513dfac3b3f047c0">GetSocket</a> ()</td></tr> |
|
74 |
|
75 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="71cac88a9f4c5b7338f0a9124bf44926"></a><!-- doxytag: member="CPanConnections::GetSocketArray" ref="71cac88a9f4c5b7338f0a9124bf44926" args="()" --> |
|
76 RArray< RSocket > & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#71cac88a9f4c5b7338f0a9124bf44926">GetSocketArray</a> ()</td></tr> |
|
77 |
|
78 <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> |
|
79 <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="class_c_pan_connections.html">CPanConnections</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#b3d65eba7c9b59bc2bf952a7e881a626">NewL</a> (CConsoleBase &aConsole)</td></tr> |
|
80 |
|
81 <tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr> |
|
82 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="418dc0f90e99ec9637d9c1831044af04"></a><!-- doxytag: member="CPanConnections::iIapStarted" ref="418dc0f90e99ec9637d9c1831044af04" args="" --> |
|
83 TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#418dc0f90e99ec9637d9c1831044af04">iIapStarted</a></td></tr> |
|
84 |
|
85 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="16aec88b4b1dc3032457bb71b4534b5d"></a><!-- doxytag: member="CPanConnections::iIapLoading" ref="16aec88b4b1dc3032457bb71b4534b5d" args="" --> |
|
86 TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#16aec88b4b1dc3032457bb71b4534b5d">iIapLoading</a></td></tr> |
|
87 |
|
88 <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="08eeb95689dc6653b48bf55b9cd14381"></a><!-- doxytag: member="CPanConnections::iListening" ref="08eeb95689dc6653b48bf55b9cd14381" args="" --> |
|
89 TBool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_pan_connections.html#08eeb95689dc6653b48bf55b9cd14381">iListening</a></td></tr> |
|
90 |
|
91 </table> |
|
92 <hr><a name="_details"></a><h2>Detailed Description</h2> |
|
93 The <a class="el" href="class_c_pan_connections.html">CPanConnections</a> class is responsible for setting up the underlying PAN. It's duties are to update the CommDb and use it to start an IAP, it allows for devices to be connected together in a network using Bluetooth. If the user wishes to be the dealer in the game (PAN-Gn) then they will be required to select the player (via Bluetooth address). |
|
94 <p>Definition at line <a class="el" href="panconnection_8h-source.html#l00056">56</a> of file <a class="el" href="panconnection_8h-source.html">panconnection.h</a>.</p> |
|
95 <hr><h2>Constructor & Destructor Documentation</h2> |
|
96 <a class="anchor" name="6f1e2360d9b792b4eb67233dd0757d41"></a><!-- doxytag: member="CPanConnections::~CPanConnections" ref="6f1e2360d9b792b4eb67233dd0757d41" args="()" --> |
|
97 <div class="memitem"> |
|
98 <div class="memproto"> |
|
99 <table class="memname"> |
|
100 <tr> |
|
101 <td class="memname">CPanConnections::~CPanConnections </td> |
|
102 <td>(</td> |
|
103 <td class="paramname"> </td> |
|
104 <td> ) </td> |
|
105 <td width="100%"></td> |
|
106 </tr> |
|
107 </table> |
|
108 </div> |
|
109 <div class="memdoc"> |
|
110 |
|
111 <p> |
|
112 Destruction. |
|
113 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00059">59</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
114 |
|
115 </div> |
|
116 </div><p> |
|
117 <hr><h2>Member Function Documentation</h2> |
|
118 <a class="anchor" name="b3d65eba7c9b59bc2bf952a7e881a626"></a><!-- doxytag: member="CPanConnections::NewL" ref="b3d65eba7c9b59bc2bf952a7e881a626" args="(CConsoleBase &aConsole)" --> |
|
119 <div class="memitem"> |
|
120 <div class="memproto"> |
|
121 <table class="memname"> |
|
122 <tr> |
|
123 <td class="memname"><a class="el" href="class_c_pan_connections.html">CPanConnections</a> * CPanConnections::NewL </td> |
|
124 <td>(</td> |
|
125 <td class="paramtype">CConsoleBase & </td> |
|
126 <td class="paramname"> <em>aConsole</em> </td> |
|
127 <td> ) </td> |
|
128 <td width="100%"><code> [static]</code></td> |
|
129 </tr> |
|
130 </table> |
|
131 </div> |
|
132 <div class="memdoc"> |
|
133 |
|
134 <p> |
|
135 <a class="el" href="class_c_pan_connections.html">CPanConnections</a> NewL function |
|
136 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00037">37</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
137 |
|
138 </div> |
|
139 </div><p> |
|
140 <a class="anchor" name="34c21dab326042522928cc4796c92df2"></a><!-- doxytag: member="CPanConnections::StartConnection" ref="34c21dab326042522928cc4796c92df2" args="(TBTDevAddr *aDevAddr, TBool aUsePANNotifier, TBool aUseTcpTransport)" --> |
|
141 <div class="memitem"> |
|
142 <div class="memproto"> |
|
143 <table class="memname"> |
|
144 <tr> |
|
145 <td class="memname">TInt CPanConnections::StartConnection </td> |
|
146 <td>(</td> |
|
147 <td class="paramtype">TBTDevAddr * </td> |
|
148 <td class="paramname"> <em>aDevAddr</em>, </td> |
|
149 </tr> |
|
150 <tr> |
|
151 <td class="paramkey"></td> |
|
152 <td></td> |
|
153 <td class="paramtype">TBool </td> |
|
154 <td class="paramname"> <em>aUsePANNotifier</em>, </td> |
|
155 </tr> |
|
156 <tr> |
|
157 <td class="paramkey"></td> |
|
158 <td></td> |
|
159 <td class="paramtype">TBool </td> |
|
160 <td class="paramname"> <em>aUseTcpTransport</em></td><td> </td> |
|
161 </tr> |
|
162 <tr> |
|
163 <td></td> |
|
164 <td>)</td> |
|
165 <td></td><td></td><td width="100%"></td> |
|
166 </tr> |
|
167 </table> |
|
168 </div> |
|
169 <div class="memdoc"> |
|
170 |
|
171 <p> |
|
172 Function called to Start a connection (IAP). |
|
173 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00321">321</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
174 |
|
175 </div> |
|
176 </div><p> |
|
177 <a class="anchor" name="6ca7760ec4140c02725dc8a29c061ba9"></a><!-- doxytag: member="CPanConnections::StopConnection" ref="6ca7760ec4140c02725dc8a29c061ba9" args="()" --> |
|
178 <div class="memitem"> |
|
179 <div class="memproto"> |
|
180 <table class="memname"> |
|
181 <tr> |
|
182 <td class="memname">TInt CPanConnections::StopConnection </td> |
|
183 <td>(</td> |
|
184 <td class="paramname"> </td> |
|
185 <td> ) </td> |
|
186 <td width="100%"></td> |
|
187 </tr> |
|
188 </table> |
|
189 </div> |
|
190 <div class="memdoc"> |
|
191 |
|
192 <p> |
|
193 Stops the currently active connection, this is the connection that the user has selected from the numeric menu option, therefore only one device will be disconnected at a time. |
|
194 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00652">652</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
195 |
|
196 </div> |
|
197 </div><p> |
|
198 <a class="anchor" name="0eec65826c0323a9ab6e85b0739bbc44"></a><!-- doxytag: member="CPanConnections::SetActivePanConn" ref="0eec65826c0323a9ab6e85b0739bbc44" args="(TUint aConnIndex)" --> |
|
199 <div class="memitem"> |
|
200 <div class="memproto"> |
|
201 <table class="memname"> |
|
202 <tr> |
|
203 <td class="memname">TInt CPanConnections::SetActivePanConn </td> |
|
204 <td>(</td> |
|
205 <td class="paramtype">TUint </td> |
|
206 <td class="paramname"> <em>aConnIndex</em> </td> |
|
207 <td> ) </td> |
|
208 <td width="100%"></td> |
|
209 </tr> |
|
210 </table> |
|
211 </div> |
|
212 <div class="memdoc"> |
|
213 |
|
214 <p> |
|
215 Function that is passed the numeric option selected by the user, the iActivePanConn member is set so that we can perform tasks with this device, i.e. diconnect from RConnection. |
|
216 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00682">682</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
217 |
|
218 </div> |
|
219 </div><p> |
|
220 <a class="anchor" name="c3da88ca7fc0fb64434fd84f81cddc98"></a><!-- doxytag: member="CPanConnections::SetLocalIpAddrL" ref="c3da88ca7fc0fb64434fd84f81cddc98" args="(TUint32 aAddr)" --> |
|
221 <div class="memitem"> |
|
222 <div class="memproto"> |
|
223 <table class="memname"> |
|
224 <tr> |
|
225 <td class="memname">void CPanConnections::SetLocalIpAddrL </td> |
|
226 <td>(</td> |
|
227 <td class="paramtype">TUint32 </td> |
|
228 <td class="paramname"> <em>addr</em> </td> |
|
229 <td> ) </td> |
|
230 <td width="100%"></td> |
|
231 </tr> |
|
232 </table> |
|
233 </div> |
|
234 <div class="memdoc"> |
|
235 |
|
236 <p> |
|
237 Function that takes an IP address from user input, accesses the Bluetooth PAN Profile table in the CommDb and updates the IpAddr field with the supplied address. |
|
238 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00487">487</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
239 |
|
240 </div> |
|
241 </div><p> |
|
242 <a class="anchor" name="46d8bac828d453473cec94a8602468ac"></a><!-- doxytag: member="CPanConnections::SetFixedRoleL" ref="46d8bac828d453473cec94a8602468ac" args="(TSide aSide, TUint aRole)" --> |
|
243 <div class="memitem"> |
|
244 <div class="memproto"> |
|
245 <table class="memname"> |
|
246 <tr> |
|
247 <td class="memname">void CPanConnections::SetFixedRoleL </td> |
|
248 <td>(</td> |
|
249 <td class="paramtype">TSide </td> |
|
250 <td class="paramname"> <em>aSide</em>, </td> |
|
251 </tr> |
|
252 <tr> |
|
253 <td class="paramkey"></td> |
|
254 <td></td> |
|
255 <td class="paramtype">TUint </td> |
|
256 <td class="paramname"> <em>aRole</em></td><td> </td> |
|
257 </tr> |
|
258 <tr> |
|
259 <td></td> |
|
260 <td>)</td> |
|
261 <td></td><td></td><td width="100%"></td> |
|
262 </tr> |
|
263 </table> |
|
264 </div> |
|
265 <div class="memdoc"> |
|
266 |
|
267 <p> |
|
268 Function that accesses the PAN Service table in the CommDb and applies the appropriate role, this function will be used for local or peer as well as the PAN role (U or Gn). |
|
269 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00530">530</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
270 |
|
271 </div> |
|
272 </div><p> |
|
273 <a class="anchor" name="0ce9d37dc00e0572bb5c7f0b5befa07b"></a><!-- doxytag: member="CPanConnections::PrintConns" ref="0ce9d37dc00e0572bb5c7f0b5befa07b" args="()" --> |
|
274 <div class="memitem"> |
|
275 <div class="memproto"> |
|
276 <table class="memname"> |
|
277 <tr> |
|
278 <td class="memname">void CPanConnections::PrintConns </td> |
|
279 <td>(</td> |
|
280 <td class="paramname"> </td> |
|
281 <td> ) </td> |
|
282 <td width="100%"></td> |
|
283 </tr> |
|
284 </table> |
|
285 </div> |
|
286 <div class="memdoc"> |
|
287 |
|
288 <p> |
|
289 Function to print the current connections we have. |
|
290 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00731">731</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
291 |
|
292 </div> |
|
293 </div><p> |
|
294 <a class="anchor" name="0cab5de7e4afe736c2469735640ec1ba"></a><!-- doxytag: member="CPanConnections::TcpIpBindAndListen" ref="0cab5de7e4afe736c2469735640ec1ba" args="()" --> |
|
295 <div class="memitem"> |
|
296 <div class="memproto"> |
|
297 <table class="memname"> |
|
298 <tr> |
|
299 <td class="memname">TInt CPanConnections::TcpIpBindAndListen </td> |
|
300 <td>(</td> |
|
301 <td class="paramname"> </td> |
|
302 <td> ) </td> |
|
303 <td width="100%"></td> |
|
304 </tr> |
|
305 </table> |
|
306 </div> |
|
307 <div class="memdoc"> |
|
308 |
|
309 <p> |
|
310 Function that will bind and listen on a socket |
|
311 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00960">960</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
312 |
|
313 </div> |
|
314 </div><p> |
|
315 <a class="anchor" name="acbdae817598b72658b6b93833ee0975"></a><!-- doxytag: member="CPanConnections::TcpIpBindAndConnect" ref="acbdae817598b72658b6b93833ee0975" args="()" --> |
|
316 <div class="memitem"> |
|
317 <div class="memproto"> |
|
318 <table class="memname"> |
|
319 <tr> |
|
320 <td class="memname">TInt CPanConnections::TcpIpBindAndConnect </td> |
|
321 <td>(</td> |
|
322 <td class="paramname"> </td> |
|
323 <td> ) </td> |
|
324 <td width="100%"></td> |
|
325 </tr> |
|
326 </table> |
|
327 </div> |
|
328 <div class="memdoc"> |
|
329 |
|
330 <p> |
|
331 Function used to bind and connect to an existing socket. The socket we connect to has to be ready to Accept us. |
|
332 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00926">926</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
333 |
|
334 </div> |
|
335 </div><p> |
|
336 <a class="anchor" name="514cfbe2ba7d674954dbc60c85ab7018"></a><!-- doxytag: member="CPanConnections::ListenDoCancel" ref="514cfbe2ba7d674954dbc60c85ab7018" args="()" --> |
|
337 <div class="memitem"> |
|
338 <div class="memproto"> |
|
339 <table class="memname"> |
|
340 <tr> |
|
341 <td class="memname">void CPanConnections::ListenDoCancel </td> |
|
342 <td>(</td> |
|
343 <td class="paramname"> </td> |
|
344 <td> ) </td> |
|
345 <td width="100%"></td> |
|
346 </tr> |
|
347 </table> |
|
348 </div> |
|
349 <div class="memdoc"> |
|
350 |
|
351 <p> |
|
352 Function called if the current accept on a socket is canceled before completing. |
|
353 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00870">870</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
354 |
|
355 </div> |
|
356 </div><p> |
|
357 <a class="anchor" name="070d37e1361be12f2dc44fee0653597b"></a><!-- doxytag: member="CPanConnections::ConnectDoCancel" ref="070d37e1361be12f2dc44fee0653597b" args="()" --> |
|
358 <div class="memitem"> |
|
359 <div class="memproto"> |
|
360 <table class="memname"> |
|
361 <tr> |
|
362 <td class="memname">void CPanConnections::ConnectDoCancel </td> |
|
363 <td>(</td> |
|
364 <td class="paramname"> </td> |
|
365 <td> ) </td> |
|
366 <td width="100%"></td> |
|
367 </tr> |
|
368 </table> |
|
369 </div> |
|
370 <div class="memdoc"> |
|
371 |
|
372 <p> |
|
373 Function that is called to cancel an outstanding socket connection |
|
374 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00821">821</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
375 |
|
376 </div> |
|
377 </div><p> |
|
378 <a class="anchor" name="1c722de1ae920eb3160284c18c6bed99"></a><!-- doxytag: member="CPanConnections::CloseTcpIpSocketConnect" ref="1c722de1ae920eb3160284c18c6bed99" args="()" --> |
|
379 <div class="memitem"> |
|
380 <div class="memproto"> |
|
381 <table class="memname"> |
|
382 <tr> |
|
383 <td class="memname">TInt CPanConnections::CloseTcpIpSocketConnect </td> |
|
384 <td>(</td> |
|
385 <td class="paramname"> </td> |
|
386 <td> ) </td> |
|
387 <td width="100%"></td> |
|
388 </tr> |
|
389 </table> |
|
390 </div> |
|
391 <div class="memdoc"> |
|
392 |
|
393 <p> |
|
394 Function to shutdown the existing socket. |
|
395 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01043">1043</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
396 |
|
397 </div> |
|
398 </div><p> |
|
399 <a class="anchor" name="1f0cd7f4bcfd821937b31c7daaf9af62"></a><!-- doxytag: member="CPanConnections::GetRemoteIpAddr" ref="1f0cd7f4bcfd821937b31c7daaf9af62" args="() const " --> |
|
400 <div class="memitem"> |
|
401 <div class="memproto"> |
|
402 <table class="memname"> |
|
403 <tr> |
|
404 <td class="memname">TUint32 CPanConnections::GetRemoteIpAddr </td> |
|
405 <td>(</td> |
|
406 <td class="paramname"> </td> |
|
407 <td> ) </td> |
|
408 <td width="100%"> const</td> |
|
409 </tr> |
|
410 </table> |
|
411 </div> |
|
412 <div class="memdoc"> |
|
413 |
|
414 <p> |
|
415 Function to recall the remote IP address we have set. |
|
416 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00889">889</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
417 |
|
418 </div> |
|
419 </div><p> |
|
420 <a class="anchor" name="99afb06bc3e1614ec86be77da414e054"></a><!-- doxytag: member="CPanConnections::SetRemoteIpAddr" ref="99afb06bc3e1614ec86be77da414e054" args="(TUint32 aAddr)" --> |
|
421 <div class="memitem"> |
|
422 <div class="memproto"> |
|
423 <table class="memname"> |
|
424 <tr> |
|
425 <td class="memname">void CPanConnections::SetRemoteIpAddr </td> |
|
426 <td>(</td> |
|
427 <td class="paramtype">TUint32 </td> |
|
428 <td class="paramname"> <em>aAddr</em> </td> |
|
429 <td> ) </td> |
|
430 <td width="100%"></td> |
|
431 </tr> |
|
432 </table> |
|
433 </div> |
|
434 <div class="memdoc"> |
|
435 |
|
436 <p> |
|
437 Take the address entered and set it as our remote IP address (the device we wish to connect to). |
|
438 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00881">881</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
439 |
|
440 </div> |
|
441 </div><p> |
|
442 <a class="anchor" name="2487d17afe967008336124ab48a744ff"></a><!-- doxytag: member="CPanConnections::AcceptNewSocket" ref="2487d17afe967008336124ab48a744ff" args="()" --> |
|
443 <div class="memitem"> |
|
444 <div class="memproto"> |
|
445 <table class="memname"> |
|
446 <tr> |
|
447 <td class="memname">TInt CPanConnections::AcceptNewSocket </td> |
|
448 <td>(</td> |
|
449 <td class="paramname"> </td> |
|
450 <td> ) </td> |
|
451 <td width="100%"></td> |
|
452 </tr> |
|
453 </table> |
|
454 </div> |
|
455 <div class="memdoc"> |
|
456 |
|
457 <p> |
|
458 Function that creates a new blank socket, when a socket is connected the original socket will hand over control to the once blank socket. The new sockets will be held in an array. Once all sockets have connected we can proceed to send out the player numbers each player. |
|
459 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00990">990</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
460 |
|
461 </div> |
|
462 </div><p> |
|
463 <a class="anchor" name="f50cb29f97f35de684d03bf5211671f2"></a><!-- doxytag: member="CPanConnections::PrintTcpSocketConnections" ref="f50cb29f97f35de684d03bf5211671f2" args="()" --> |
|
464 <div class="memitem"> |
|
465 <div class="memproto"> |
|
466 <table class="memname"> |
|
467 <tr> |
|
468 <td class="memname">void CPanConnections::PrintTcpSocketConnections </td> |
|
469 <td>(</td> |
|
470 <td class="paramname"> </td> |
|
471 <td> ) </td> |
|
472 <td width="100%"></td> |
|
473 </tr> |
|
474 </table> |
|
475 </div> |
|
476 <div class="memdoc"> |
|
477 |
|
478 <p> |
|
479 Function that prints out the IP addresses of the connected devices. |
|
480 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01084">1084</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
481 |
|
482 </div> |
|
483 </div><p> |
|
484 <a class="anchor" name="f113f2b06e495b97ab788e3f0030b617"></a><!-- doxytag: member="CPanConnections::GetLocalRole" ref="f113f2b06e495b97ab788e3f0030b617" args="() const " --> |
|
485 <div class="memitem"> |
|
486 <div class="memproto"> |
|
487 <table class="memname"> |
|
488 <tr> |
|
489 <td class="memname">TInt CPanConnections::GetLocalRole </td> |
|
490 <td>(</td> |
|
491 <td class="paramname"> </td> |
|
492 <td> ) </td> |
|
493 <td width="100%"> const</td> |
|
494 </tr> |
|
495 </table> |
|
496 </div> |
|
497 <div class="memdoc"> |
|
498 |
|
499 <p> |
|
500 Get the local role |
|
501 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01116">1116</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
502 |
|
503 </div> |
|
504 </div><p> |
|
505 <a class="anchor" name="f442c51cea29f54570235995428a7bcb"></a><!-- doxytag: member="CPanConnections::CancelIap" ref="f442c51cea29f54570235995428a7bcb" args="()" --> |
|
506 <div class="memitem"> |
|
507 <div class="memproto"> |
|
508 <table class="memname"> |
|
509 <tr> |
|
510 <td class="memname">void CPanConnections::CancelIap </td> |
|
511 <td>(</td> |
|
512 <td class="paramname"> </td> |
|
513 <td> ) </td> |
|
514 <td width="100%"></td> |
|
515 </tr> |
|
516 </table> |
|
517 </div> |
|
518 <div class="memdoc"> |
|
519 |
|
520 <p> |
|
521 Function called is an outstanding connection request is canceled. |
|
522 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00640">640</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
523 |
|
524 </div> |
|
525 </div><p> |
|
526 <a class="anchor" name="526bf1de502ce10fcd0630e39aabc52e"></a><!-- doxytag: member="CPanConnections::StopIAP" ref="526bf1de502ce10fcd0630e39aabc52e" args="()" --> |
|
527 <div class="memitem"> |
|
528 <div class="memproto"> |
|
529 <table class="memname"> |
|
530 <tr> |
|
531 <td class="memname">TInt CPanConnections::StopIAP </td> |
|
532 <td>(</td> |
|
533 <td class="paramname"> </td> |
|
534 <td> ) </td> |
|
535 <td width="100%"></td> |
|
536 </tr> |
|
537 </table> |
|
538 </div> |
|
539 <div class="memdoc"> |
|
540 |
|
541 <p> |
|
542 Function to stop the connection to the IAP. |
|
543 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00613">613</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
544 |
|
545 </div> |
|
546 </div><p> |
|
547 <a class="anchor" name="36b2c2c4943f29420aa4ee6208e7c266"></a><!-- doxytag: member="CPanConnections::CloseAllTcpIpSockets" ref="36b2c2c4943f29420aa4ee6208e7c266" args="()" --> |
|
548 <div class="memitem"> |
|
549 <div class="memproto"> |
|
550 <table class="memname"> |
|
551 <tr> |
|
552 <td class="memname">TInt CPanConnections::CloseAllTcpIpSockets </td> |
|
553 <td>(</td> |
|
554 <td class="paramname"> </td> |
|
555 <td> ) </td> |
|
556 <td width="100%"></td> |
|
557 </tr> |
|
558 </table> |
|
559 </div> |
|
560 <div class="memdoc"> |
|
561 |
|
562 <p> |
|
563 Function to shutdown all sockets in the socket array. This function only applies to a PAN-Gn. |
|
564 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01057">1057</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
565 |
|
566 </div> |
|
567 </div><p> |
|
568 <a class="anchor" name="28a3b8b1bc3dcd590e6899e8ac08ce53"></a><!-- doxytag: member="CPanConnections::CloseCurrentTcpIpSocket" ref="28a3b8b1bc3dcd590e6899e8ac08ce53" args="()" --> |
|
569 <div class="memitem"> |
|
570 <div class="memproto"> |
|
571 <table class="memname"> |
|
572 <tr> |
|
573 <td class="memname">TInt CPanConnections::CloseCurrentTcpIpSocket </td> |
|
574 <td>(</td> |
|
575 <td class="paramname"> </td> |
|
576 <td> ) </td> |
|
577 <td width="100%"></td> |
|
578 </tr> |
|
579 </table> |
|
580 </div> |
|
581 <div class="memdoc"> |
|
582 |
|
583 <p> |
|
584 Function to Shutdown a socket of the users choice. |
|
585 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01072">1072</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
586 |
|
587 </div> |
|
588 </div><p> |
|
589 <a class="anchor" name="6c2066f03c9d53e73206cff1dae7aa5b"></a><!-- doxytag: member="CPanConnections::ActiveConnCount" ref="6c2066f03c9d53e73206cff1dae7aa5b" args="()" --> |
|
590 <div class="memitem"> |
|
591 <div class="memproto"> |
|
592 <table class="memname"> |
|
593 <tr> |
|
594 <td class="memname">TInt CPanConnections::ActiveConnCount </td> |
|
595 <td>(</td> |
|
596 <td class="paramname"> </td> |
|
597 <td> ) </td> |
|
598 <td width="100%"></td> |
|
599 </tr> |
|
600 </table> |
|
601 </div> |
|
602 <div class="memdoc"> |
|
603 |
|
604 <p> |
|
605 Function that return the number of active connections. |
|
606 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l01126">1126</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
607 |
|
608 </div> |
|
609 </div><p> |
|
610 <a class="anchor" name="d3dc3627a7c944f0ffa82caa9f024166"></a><!-- doxytag: member="CPanConnections::RunL" ref="d3dc3627a7c944f0ffa82caa9f024166" args="()" --> |
|
611 <div class="memitem"> |
|
612 <div class="memproto"> |
|
613 <table class="memname"> |
|
614 <tr> |
|
615 <td class="memname">void CPanConnections::RunL </td> |
|
616 <td>(</td> |
|
617 <td class="paramname"> </td> |
|
618 <td> ) </td> |
|
619 <td width="100%"></td> |
|
620 </tr> |
|
621 </table> |
|
622 </div> |
|
623 <div class="memdoc"> |
|
624 |
|
625 <p> |
|
626 When the IAP connection has connected asyncronously our RunL will be called. |
|
627 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00268">268</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
628 |
|
629 </div> |
|
630 </div><p> |
|
631 <a class="anchor" name="2451289abf1a401dc5d343afa4eeaf86"></a><!-- doxytag: member="CPanConnections::DoCancel" ref="2451289abf1a401dc5d343afa4eeaf86" args="()" --> |
|
632 <div class="memitem"> |
|
633 <div class="memproto"> |
|
634 <table class="memname"> |
|
635 <tr> |
|
636 <td class="memname">void CPanConnections::DoCancel </td> |
|
637 <td>(</td> |
|
638 <td class="paramname"> </td> |
|
639 <td> ) </td> |
|
640 <td width="100%"></td> |
|
641 </tr> |
|
642 </table> |
|
643 </div> |
|
644 <div class="memdoc"> |
|
645 |
|
646 <p> |
|
647 If the request to start a new connection is cancelled before completion this function will be called. |
|
648 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00310">310</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
649 |
|
650 </div> |
|
651 </div><p> |
|
652 <a class="anchor" name="bb1b1dc6e61cc3a4860e5480b2bd6c37"></a><!-- doxytag: member="CPanConnections::RemoteNames" ref="bb1b1dc6e61cc3a4860e5480b2bd6c37" args="()" --> |
|
653 <div class="memitem"> |
|
654 <div class="memproto"> |
|
655 <table class="memname"> |
|
656 <tr> |
|
657 <td class="memname">RArray< TInetAddr > & CPanConnections::RemoteNames </td> |
|
658 <td>(</td> |
|
659 <td class="paramname"> </td> |
|
660 <td> ) </td> |
|
661 <td width="100%"></td> |
|
662 </tr> |
|
663 </table> |
|
664 </div> |
|
665 <div class="memdoc"> |
|
666 |
|
667 <p> |
|
668 This is a function that will return the array device addresses. This can then be used along with a reference to the socket to use the PAN |
|
669 <p>Definition at line <a class="el" href="panconnection_8cpp-source.html#l00831">831</a> of file <a class="el" href="panconnection_8cpp-source.html">panconnection.cpp</a>.</p> |
|
670 |
|
671 </div> |
|
672 </div><p> |
|
673 <hr size="1"><address style="text-align: right;"><small>Generated on Thu Jan 21 10:33:07 2010 for TB10.1 Example Applications by |
|
674 <a href="http://www.doxygen.org/index.html"> |
|
675 <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address> |
|
676 </body> |
|
677 </html> |