1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html xmlns="http://www.w3.org/1999/xhtml">
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5<meta http-equiv="Content-Style-Type" content="text/css" />
6<title>WFS_InitServer</title>
7<link rel="stylesheet" href="../../css/nitro.css" type="text/css" />
8</head>
9<body>
10
11<h1>WFS_InitServer&nbsp;<img src="../../image/NTR.gif"><img src="../../image/TWL.gif"></h1>
12<h2>Syntax</h2>
13
14<dl>
15  <dd>
16<code>#include &lt;nitro/wfs.h&gt;</code><br />
17  <br />
18  <code>void WFS_InitServer(WFSServerContext *context,
19                    void *userdata, <a href="../WFSEventCallback.html">WFSEventCallback</a> callback, <a href="../../mi/allocator/MIAllocator.html">MIAllocator</a> *allocator, int packet);</code><br />
20  <br />
21  </dd>
22</dl>
23<h2>Arguments</h2>
24<table border="1" width="100%">
25  <tbody>
26    <tr>
27      <td style="width:13%"><em><strong>context</strong></em></td>
28      <td style="width:87%">Pointer to the <CODE>WFSServerContext</CODE> structure to be initialized</td>
29    </tr>
30    <tr>
31      <td style="width:13%"><em><strong>userdata</strong></em></td>
32      <td style="width:87%">Any user-defined value to be linked with the context</td>
33    </tr>
34    <tr>
35      <td style="width:13%"><em><strong>callback</strong></em></td>
36      <td style="width:87%">Callback function that receives event notifications from the WFS library.<br />
37      Specify NULL if not needed.</td>
38    </tr>
39    <tr>
40      <td style="width:13%"><em><strong>allocator</strong></em></td>
41      <td style="width:87%">The allocator used internally by the library</td>
42    </tr>
43    <tr>
44      <td style="width:13%"><em><strong>packet</strong></em></td>
45      <td style="width:87%">Packet size for MP sends that can be used by the parent (server) for WFS.<br />
46      This setting can also be changed with the <a href="WFS_SetServerPacketLength.html"><code>WFS_SetServerPacketLength</code></a> function.</td>
47    </tr>
48  </tbody>
49</table>
50<h2>Return Values</h2>
51<p>None.</p>
52
53<h2>Description</h2>
54<p>Initializes the WFS library server context structure. This function must be called at least once before using the <CODE>WFSServerContext</CODE> structure. This function has absolutely no impact on the status of the OS or wireless communications because it only initializes the contents of the <CODE>WFSServerContext</CODE> structure.<BR>
55</p>
56
57<h2>See Also</h2>
58<p><code><a href="../WFSEventCallback.html">WFSEventCallback</a>, <br /> <a href="WFS_EndServer.html">WFS_EndServer</a>, <a href="WFS_RegisterServerTable.html">WFS_RegisterServerTable</a>, <a href="WFS_CallServerConnectHook.html">WFS_CallServerConnectHook</a>, <a href="WFS_CallServerDisconnectHook.html">WFS_CallServerDisconnectHook</a>, <a href="WFS_CallServerPacketSendHook.html">WFS_CallServerPacketSendHook</a>, <a href="WFS_CallServerPacketRecvHook.html">WFS_CallServerPacketRecvHook</a> <br /></code></p>
59
60<h2>Revision History</h2>
61<p>
622007/06/06 Initial version.
63</p>
64<hr><p>CONFIDENTIAL</p></body>
65</html>
66