56
48
enum <a class="link" href="libnice-StunAgent.html#StunCompatibility" title="enum StunCompatibility">StunCompatibility</a>;
57
49
enum <a class="link" href="libnice-StunAgent.html#StunAgentUsageFlags" title="enum StunAgentUsageFlags">StunAgentUsageFlags</a>;
58
50
enum <a class="link" href="libnice-StunAgent.html#StunValidationStatus" title="enum StunValidationStatus">StunValidationStatus</a>;
59
<span class="returnvalue">bool</span> (<a class="link" href="libnice-StunAgent.html#StunMessageIntegrityValidate" title="StunMessageIntegrityValidate ()">*StunMessageIntegrityValidate</a>) (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
60
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *message,
61
<span class="returnvalue">uint8_t</span> *username,
62
<span class="returnvalue">uint16_t</span> username_len,
63
<span class="returnvalue">uint8_t</span> **password,
64
<span class="returnvalue">size_t</span> *password_len,
65
<span class="returnvalue">void</span> *user_data);
51
<span class="returnvalue">bool</span> (<a class="link" href="libnice-StunAgent.html#StunMessageIntegrityValidate" title="StunMessageIntegrityValidate ()">*StunMessageIntegrityValidate</a>) (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
52
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *message</code></em>,
53
<em class="parameter"><code><span class="type">uint8_t</span> *username</code></em>,
54
<em class="parameter"><code><span class="type">uint16_t</span> username_len</code></em>,
55
<em class="parameter"><code><span class="type">uint8_t</span> **password</code></em>,
56
<em class="parameter"><code><span class="type">size_t</span> *password_len</code></em>,
57
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
66
58
<a class="link" href="libnice-StunAgent.html#StunDefaultValidaterData" title="StunDefaultValidaterData">StunDefaultValidaterData</a>;
67
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init" title="stun_agent_init ()">stun_agent_init</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
68
const <span class="returnvalue">uint16_t</span> *known_attributes,
69
<a class="link" href="libnice-StunAgent.html#StunCompatibility" title="enum StunCompatibility"><span class="returnvalue">StunCompatibility</span></a> compatibility,
70
<a class="link" href="libnice-StunAgent.html#StunAgentUsageFlags" title="enum StunAgentUsageFlags"><span class="returnvalue">StunAgentUsageFlags</span></a> usage_flags);
71
<a class="link" href="libnice-StunAgent.html#StunValidationStatus" title="enum StunValidationStatus"><span class="returnvalue">StunValidationStatus</span></a> <a class="link" href="libnice-StunAgent.html#stun-agent-validate" title="stun_agent_validate ()">stun_agent_validate</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
72
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
73
const <span class="returnvalue">uint8_t</span> *buffer,
74
<span class="returnvalue">size_t</span> buffer_len,
75
<a class="link" href="libnice-StunAgent.html#StunMessageIntegrityValidate" title="StunMessageIntegrityValidate ()"><span class="returnvalue">StunMessageIntegrityValidate</span></a> validater,
76
<span class="returnvalue">void</span> *validater_data);
77
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-default-validater" title="stun_agent_default_validater ()">stun_agent_default_validater</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
78
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *message,
79
<span class="returnvalue">uint8_t</span> *username,
80
<span class="returnvalue">uint16_t</span> username_len,
81
<span class="returnvalue">uint8_t</span> **password,
82
<span class="returnvalue">size_t</span> *password_len,
83
<span class="returnvalue">void</span> *user_data);
84
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-request" title="stun_agent_init_request ()">stun_agent_init_request</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
85
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
86
<span class="returnvalue">uint8_t</span> *buffer,
87
<span class="returnvalue">size_t</span> buffer_len,
88
<a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="returnvalue">StunMethod</span></a> m);
89
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-indication" title="stun_agent_init_indication ()">stun_agent_init_indication</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
90
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
91
<span class="returnvalue">uint8_t</span> *buffer,
92
<span class="returnvalue">size_t</span> buffer_len,
93
<a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="returnvalue">StunMethod</span></a> m);
94
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-response" title="stun_agent_init_response ()">stun_agent_init_response</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
95
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
96
<span class="returnvalue">uint8_t</span> *buffer,
97
<span class="returnvalue">size_t</span> buffer_len,
98
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request);
99
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-error" title="stun_agent_init_error ()">stun_agent_init_error</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
100
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
101
<span class="returnvalue">uint8_t</span> *buffer,
102
<span class="returnvalue">size_t</span> buffer_len,
103
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request,
104
<a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="returnvalue">StunError</span></a> err);
59
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init" title="stun_agent_init ()">stun_agent_init</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
60
<em class="parameter"><code>const <span class="type">uint16_t</span> *known_attributes</code></em>,
61
<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunCompatibility" title="enum StunCompatibility"><span class="type">StunCompatibility</span></a> compatibility</code></em>,
62
<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgentUsageFlags" title="enum StunAgentUsageFlags"><span class="type">StunAgentUsageFlags</span></a> usage_flags</code></em>);
63
<a class="link" href="libnice-StunAgent.html#StunValidationStatus" title="enum StunValidationStatus"><span class="returnvalue">StunValidationStatus</span></a> <a class="link" href="libnice-StunAgent.html#stun-agent-validate" title="stun_agent_validate ()">stun_agent_validate</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
64
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
65
<em class="parameter"><code>const <span class="type">uint8_t</span> *buffer</code></em>,
66
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
67
<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunMessageIntegrityValidate" title="StunMessageIntegrityValidate ()"><span class="type">StunMessageIntegrityValidate</span></a> validater</code></em>,
68
<em class="parameter"><code><span class="type">void</span> *validater_data</code></em>);
69
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-default-validater" title="stun_agent_default_validater ()">stun_agent_default_validater</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
70
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *message</code></em>,
71
<em class="parameter"><code><span class="type">uint8_t</span> *username</code></em>,
72
<em class="parameter"><code><span class="type">uint16_t</span> username_len</code></em>,
73
<em class="parameter"><code><span class="type">uint8_t</span> **password</code></em>,
74
<em class="parameter"><code><span class="type">size_t</span> *password_len</code></em>,
75
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);
76
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-request" title="stun_agent_init_request ()">stun_agent_init_request</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
77
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
78
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
79
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
80
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> m</code></em>);
81
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-indication" title="stun_agent_init_indication ()">stun_agent_init_indication</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
82
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
83
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
84
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
85
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> m</code></em>);
86
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-response" title="stun_agent_init_response ()">stun_agent_init_response</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
87
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
88
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
89
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
90
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>);
91
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-init-error" title="stun_agent_init_error ()">stun_agent_init_error</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
92
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
93
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
94
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
95
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>,
96
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="type">StunError</span></a> err</code></em>);
105
97
<span class="returnvalue">size_t</span> <a class="link" href="libnice-StunAgent.html#stun-agent-build-unknown-attributes-error" title="stun_agent_build_unknown_attributes_error ()">stun_agent_build_unknown_attributes_error</a>
106
(<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
107
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
108
<span class="returnvalue">uint8_t</span> *buffer,
109
<span class="returnvalue">size_t</span> buffer_len,
110
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request);
111
<span class="returnvalue">size_t</span> <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()">stun_agent_finish_message</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
112
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
113
const <span class="returnvalue">uint8_t</span> *key,
114
<span class="returnvalue">size_t</span> key_len);
115
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-forget-transaction" title="stun_agent_forget_transaction ()">stun_agent_forget_transaction</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
116
<a class="link" href="libnice-StunMessage.html#StunTransactionId" title="StunTransactionId"><span class="returnvalue">StunTransactionId</span></a> id);
117
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-agent-set-software" title="stun_agent_set_software ()">stun_agent_set_software</a> (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
118
const <span class="returnvalue">char</span> *software);
119
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-debug-enable" title="stun_debug_enable ()">stun_debug_enable</a> (void);
120
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-debug-disable" title="stun_debug_disable ()">stun_debug_disable</a> (void);
98
(<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
99
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
100
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
101
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
102
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>);
103
<span class="returnvalue">size_t</span> <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()">stun_agent_finish_message</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
104
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
105
<em class="parameter"><code>const <span class="type">uint8_t</span> *key</code></em>,
106
<em class="parameter"><code><span class="type">size_t</span> key_len</code></em>);
107
<span class="returnvalue">bool</span> <a class="link" href="libnice-StunAgent.html#stun-agent-forget-transaction" title="stun_agent_forget_transaction ()">stun_agent_forget_transaction</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
108
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunTransactionId" title="StunTransactionId"><span class="type">StunTransactionId</span></a> id</code></em>);
109
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-agent-set-software" title="stun_agent_set_software ()">stun_agent_set_software</a> (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
110
<em class="parameter"><code>const <span class="type">char</span> *software</code></em>);
111
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-debug-enable" title="stun_debug_enable ()">stun_debug_enable</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
112
<span class="returnvalue">void</span> <a class="link" href="libnice-StunAgent.html#stun-debug-disable" title="stun_debug_disable ()">stun_debug_disable</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
123
115
<div class="refsect1" title="Description">
278
291
This enum is used as the return value of <a class="link" href="libnice-StunAgent.html#stun-agent-validate" title="stun_agent_validate ()"><code class="function">stun_agent_validate()</code></a> and represents
279
the status result of the validation of a STUN message.</p>
292
the status result of the validation of a STUN message.
280
294
<div class="variablelist"><table border="0">
281
295
<col align="left" valign="top">
284
298
<td><p><a name="STUN-VALIDATION-SUCCESS:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_SUCCESS</code></span></p></td>
285
<td> The message is validated
299
<td>The message is validated
289
303
<td><p><a name="STUN-VALIDATION-NOT-STUN:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_NOT_STUN</code></span></p></td>
290
<td> This is not a valid STUN message
304
<td>This is not a valid STUN message
294
308
<td><p><a name="STUN-VALIDATION-INCOMPLETE-STUN:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_INCOMPLETE_STUN</code></span></p></td>
295
<td> The message seems to be valid but incomplete
309
<td>The message seems to be valid but incomplete
299
313
<td><p><a name="STUN-VALIDATION-BAD-REQUEST:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_BAD_REQUEST</code></span></p></td>
300
<td> The message does not have the cookie or the
314
<td>The message does not have the cookie or the
301
315
fingerprint while the agent needs it with its usage
305
319
<td><p><a name="STUN-VALIDATION-UNAUTHORIZED-BAD-REQUEST:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_UNAUTHORIZED_BAD_REQUEST</code></span></p></td>
306
<td> The message is valid but
320
<td>The message is valid but
307
321
unauthorized with no username and message-integrity attributes.
308
322
A BAD_REQUEST error must be generated
312
326
<td><p><a name="STUN-VALIDATION-UNAUTHORIZED:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_UNAUTHORIZED</code></span></p></td>
313
<td> The message is valid but unauthorized as
327
<td>The message is valid but unauthorized as
314
328
the username/password do not match.
315
329
An UNAUTHORIZED error must be generated
319
333
<td><p><a name="STUN-VALIDATION-UNMATCHED-RESPONSE:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_UNMATCHED_RESPONSE</code></span></p></td>
320
<td> The message is valid but this is a
334
<td>The message is valid but this is a
321
335
response/error that doesn't match a previously sent request
325
339
<td><p><a name="STUN-VALIDATION-UNKNOWN-REQUEST-ATTRIBUTE:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_UNKNOWN_REQUEST_ATTRIBUTE</code></span></p></td>
326
<td> The message is valid but
340
<td>The message is valid but
327
341
contains one or more unknown comprehension attributes.
328
342
<a class="link" href="libnice-StunAgent.html#stun-agent-build-unknown-attributes-error" title="stun_agent_build_unknown_attributes_error ()"><code class="function">stun_agent_build_unknown_attributes_error()</code></a> should be called
332
346
<td><p><a name="STUN-VALIDATION-UNKNOWN-ATTRIBUTE:CAPS"></a><span class="term"><code class="literal">STUN_VALIDATION_UNKNOWN_ATTRIBUTE</code></span></p></td>
333
<td> The message is valid but contains one
347
<td>The message is valid but contains one
334
348
or more unknown comprehension attributes. This is a response, or error,
335
349
or indication message and no error response should be sent
342
356
<div class="refsect2" title="StunMessageIntegrityValidate ()">
343
357
<a name="StunMessageIntegrityValidate"></a><h3>StunMessageIntegrityValidate ()</h3>
344
<pre class="programlisting"><span class="returnvalue">bool</span> (*StunMessageIntegrityValidate) (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
345
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *message,
346
<span class="returnvalue">uint8_t</span> *username,
347
<span class="returnvalue">uint16_t</span> username_len,
348
<span class="returnvalue">uint8_t</span> **password,
349
<span class="returnvalue">size_t</span> *password_len,
350
<span class="returnvalue">void</span> *user_data);</pre>
358
<pre class="programlisting"><span class="returnvalue">bool</span> (*StunMessageIntegrityValidate) (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
359
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *message</code></em>,
360
<em class="parameter"><code><span class="type">uint8_t</span> *username</code></em>,
361
<em class="parameter"><code><span class="type">uint16_t</span> username_len</code></em>,
362
<em class="parameter"><code><span class="type">uint8_t</span> **password</code></em>,
363
<em class="parameter"><code><span class="type">size_t</span> *password_len</code></em>,
364
<em class="parameter"><code><span class="type">void</span> *user_data</code></em>);</pre>
352
366
This is the prototype for the <em class="parameter"><code>validater</code></em> argument of the <a class="link" href="libnice-StunAgent.html#stun-agent-validate" title="stun_agent_validate ()"><code class="function">stun_agent_validate()</code></a>
355
369
<p> See also: <a class="link" href="libnice-StunAgent.html#stun-agent-validate" title="stun_agent_validate ()"><code class="function">stun_agent_validate()</code></a> </p>
356
372
<div class="variablelist"><table border="0">
357
373
<col align="left" valign="top">
360
376
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
361
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
377
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
365
381
<td><p><span class="term"><em class="parameter"><code>message</code></em> :</span></p></td>
366
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> being validated
382
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> being validated
370
386
<td><p><span class="term"><em class="parameter"><code>username</code></em> :</span></p></td>
371
<td> The username found in the <em class="parameter"><code>message</code></em>
387
<td>The username found in the <em class="parameter"><code>message</code></em>
375
391
<td><p><span class="term"><em class="parameter"><code>username_len</code></em> :</span></p></td>
376
<td> The length of <em class="parameter"><code>username</code></em>
392
<td>The length of <em class="parameter"><code>username</code></em>
380
396
<td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
381
<td> The password associated with that username. This argument is a
397
<td>The password associated with that username. This argument is a
382
398
pointer to a byte array that must be set by the validater function.
386
402
<td><p><span class="term"><em class="parameter"><code>password_len</code></em> :</span></p></td>
387
<td> The length of <em class="parameter"><code>password</code></em> which must also be set by the
403
<td>The length of <em class="parameter"><code>password</code></em> which must also be set by the
388
404
validater function.
392
408
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
393
<td> Data to give the function
409
<td>Data to give the function
656
680
<div class="refsect2" title="stun_agent_init_request ()">
657
681
<a name="stun-agent-init-request"></a><h3>stun_agent_init_request ()</h3>
658
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_request (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
659
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
660
<span class="returnvalue">uint8_t</span> *buffer,
661
<span class="returnvalue">size_t</span> buffer_len,
662
<a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="returnvalue">StunMethod</span></a> m);</pre>
682
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_request (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
683
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
684
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
685
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
686
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> m</code></em>);</pre>
664
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> and with the method <em class="parameter"><code>m</code></em></p>
688
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> and with the method <em class="parameter"><code>m</code></em>
665
690
<div class="variablelist"><table border="0">
666
691
<col align="left" valign="top">
669
694
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
670
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
695
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
674
699
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
675
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
700
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
679
704
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
680
<td> The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
705
<td>The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
684
709
<td><p><span class="term"><em class="parameter"><code>buffer_len</code></em> :</span></p></td>
685
<td> The length of the buffer
710
<td>The length of the buffer
689
714
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
690
<td> The <a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> of the request
715
<td>The <a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> of the request
702
727
<div class="refsect2" title="stun_agent_init_indication ()">
703
728
<a name="stun-agent-init-indication"></a><h3>stun_agent_init_indication ()</h3>
704
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_indication (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
705
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
706
<span class="returnvalue">uint8_t</span> *buffer,
707
<span class="returnvalue">size_t</span> buffer_len,
708
<a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="returnvalue">StunMethod</span></a> m);</pre>
729
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_indication (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
730
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
731
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
732
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
733
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> m</code></em>);</pre>
710
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-INDICATION:CAPS"><span class="type">STUN_INDICATION</span></a> and with the method <em class="parameter"><code>m</code></em></p>
735
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-INDICATION:CAPS"><span class="type">STUN_INDICATION</span></a> and with the method <em class="parameter"><code>m</code></em>
711
737
<div class="variablelist"><table border="0">
712
738
<col align="left" valign="top">
715
741
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
716
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
742
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
720
746
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
721
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
747
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
725
751
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
726
<td> The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
752
<td>The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
730
756
<td><p><span class="term"><em class="parameter"><code>buffer_len</code></em> :</span></p></td>
731
<td> The length of the buffer
757
<td>The length of the buffer
735
761
<td><p><span class="term"><em class="parameter"><code>m</code></em> :</span></p></td>
736
<td> The <a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> of the indication
762
<td>The <a class="link" href="libnice-StunMessage.html#StunMethod" title="enum StunMethod"><span class="type">StunMethod</span></a> of the indication
748
774
<div class="refsect2" title="stun_agent_init_response ()">
749
775
<a name="stun-agent-init-response"></a><h3>stun_agent_init_response ()</h3>
750
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_response (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
751
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
752
<span class="returnvalue">uint8_t</span> *buffer,
753
<span class="returnvalue">size_t</span> buffer_len,
754
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request);</pre>
776
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_response (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
777
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
778
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
779
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
780
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>);</pre>
756
782
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-RESPONSE:CAPS"><span class="type">STUN_RESPONSE</span></a> and with the same method
757
783
and transaction ID as the message <em class="parameter"><code>request</code></em>. This will also copy the pointer
758
784
to the key that was used to authenticate the request, so you won't need to
759
specify the key with <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()"><code class="function">stun_agent_finish_message()</code></a></p>
785
specify the key with <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()"><code class="function">stun_agent_finish_message()</code></a>
760
787
<div class="variablelist"><table border="0">
761
788
<col align="left" valign="top">
764
791
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
765
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
792
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
769
796
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
770
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
797
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
774
801
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
775
<td> The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
802
<td>The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
779
806
<td><p><span class="term"><em class="parameter"><code>buffer_len</code></em> :</span></p></td>
780
<td> The length of the buffer
807
<td>The length of the buffer
784
811
<td><p><span class="term"><em class="parameter"><code>request</code></em> :</span></p></td>
785
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this response is for
812
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this response is for
797
824
<div class="refsect2" title="stun_agent_init_error ()">
798
825
<a name="stun-agent-init-error"></a><h3>stun_agent_init_error ()</h3>
799
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_error (<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
800
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
801
<span class="returnvalue">uint8_t</span> *buffer,
802
<span class="returnvalue">size_t</span> buffer_len,
803
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request,
804
<a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="returnvalue">StunError</span></a> err);</pre>
826
<pre class="programlisting"><span class="returnvalue">bool</span> stun_agent_init_error (<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
827
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
828
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
829
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
830
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>,
831
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="type">StunError</span></a> err</code></em>);</pre>
806
833
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-ERROR:CAPS"><span class="type">STUN_ERROR</span></a> and with the same method
807
834
and transaction ID as the message <em class="parameter"><code>request</code></em>. This will also copy the pointer
808
835
to the key that was used to authenticate the request (if authenticated),
809
836
so you won't need to specify the key with <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()"><code class="function">stun_agent_finish_message()</code></a>.
810
837
It will then add the ERROR-CODE attribute with code <em class="parameter"><code>err</code></em> and the associated
812
840
<div class="variablelist"><table border="0">
813
841
<col align="left" valign="top">
816
844
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
817
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
845
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
821
849
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
822
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
850
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
826
854
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
827
<td> The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
855
<td>The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
831
859
<td><p><span class="term"><em class="parameter"><code>buffer_len</code></em> :</span></p></td>
832
<td> The length of the buffer
860
<td>The length of the buffer
836
864
<td><p><span class="term"><em class="parameter"><code>request</code></em> :</span></p></td>
837
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this error response
865
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this error response
842
870
<td><p><span class="term"><em class="parameter"><code>err</code></em> :</span></p></td>
843
<td> The <a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="type">StunError</span></a> to put in the ERROR-CODE attribute of the error response
871
<td>The <a class="link" href="libnice-StunMessage.html#StunError" title="enum StunError"><span class="type">StunError</span></a> to put in the ERROR-CODE attribute of the error response
855
883
<div class="refsect2" title="stun_agent_build_unknown_attributes_error ()">
856
884
<a name="stun-agent-build-unknown-attributes-error"></a><h3>stun_agent_build_unknown_attributes_error ()</h3>
857
885
<pre class="programlisting"><span class="returnvalue">size_t</span> stun_agent_build_unknown_attributes_error
858
(<a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="returnvalue">StunAgent</span></a> *agent,
859
<a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *msg,
860
<span class="returnvalue">uint8_t</span> *buffer,
861
<span class="returnvalue">size_t</span> buffer_len,
862
const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="returnvalue">StunMessage</span></a> *request);</pre>
886
(<em class="parameter"><code><a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a> *agent</code></em>,
887
<em class="parameter"><code><a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *msg</code></em>,
888
<em class="parameter"><code><span class="type">uint8_t</span> *buffer</code></em>,
889
<em class="parameter"><code><span class="type">size_t</span> buffer_len</code></em>,
890
<em class="parameter"><code>const <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> *request</code></em>);</pre>
864
892
Creates a new STUN message of class <a class="link" href="libnice-StunMessage.html#STUN-ERROR:CAPS"><span class="type">STUN_ERROR</span></a> and with the same method
865
893
and transaction ID as the message <em class="parameter"><code>request</code></em>. It will then add the ERROR-CODE
866
894
attribute with code <a class="link" href="libnice-StunMessage.html#STUN-ERROR-UNKNOWN-ATTRIBUTE:CAPS"><span class="type">STUN_ERROR_UNKNOWN_ATTRIBUTE</span></a> and add all the unknown
867
895
mandatory attributes from the <em class="parameter"><code>request</code></em> STUN message in the
868
896
<a class="link" href="libnice-StunMessage.html#STUN-ATTRIBUTE-UNKNOWN-ATTRIBUTES:CAPS"><span class="type">STUN_ATTRIBUTE_UNKNOWN_ATTRIBUTES</span></a> attribute, it will then finish the message
869
by calling <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()"><code class="function">stun_agent_finish_message()</code></a></p>
897
by calling <a class="link" href="libnice-StunAgent.html#stun-agent-finish-message" title="stun_agent_finish_message ()"><code class="function">stun_agent_finish_message()</code></a>
870
899
<div class="variablelist"><table border="0">
871
900
<col align="left" valign="top">
874
903
<td><p><span class="term"><em class="parameter"><code>agent</code></em> :</span></p></td>
875
<td> The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
904
<td>The <a class="link" href="libnice-StunAgent.html#StunAgent" title="StunAgent"><span class="type">StunAgent</span></a>
879
908
<td><p><span class="term"><em class="parameter"><code>msg</code></em> :</span></p></td>
880
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
909
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> to build
884
913
<td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
885
<td> The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
914
<td>The buffer to use in the <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a>
889
918
<td><p><span class="term"><em class="parameter"><code>buffer_len</code></em> :</span></p></td>
890
<td> The length of the buffer
919
<td>The length of the buffer
894
923
<td><p><span class="term"><em class="parameter"><code>request</code></em> :</span></p></td>
895
<td> The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this response is for
924
<td>The <a class="link" href="libnice-StunMessage.html#StunMessage" title="StunMessage"><span class="type">StunMessage</span></a> of class <a class="link" href="libnice-StunMessage.html#STUN-REQUEST:CAPS"><span class="type">STUN_REQUEST</span></a> that this response is for