| agent.h | | agent.h | |
| | | | |
| skipping to change at line 775 | | skipping to change at line 775 | |
| * "ICE Restarts"), as well as when reacting (spec section 9.2.1.1. | | * "ICE Restarts"), as well as when reacting (spec section 9.2.1.1. | |
| * "Detecting ICE Restart") to a restart. | | * "Detecting ICE Restart") to a restart. | |
| * | | * | |
| * Returns: %TRUE on success %FALSE on error | | * Returns: %TRUE on success %FALSE on error | |
| **/ | | **/ | |
| gboolean | | gboolean | |
| nice_agent_restart ( | | nice_agent_restart ( | |
| NiceAgent *agent); | | NiceAgent *agent); | |
| | | | |
| /** | | /** | |
|
| | | * nice_agent_restart_stream: | |
| | | * @agent: The #NiceAgent Object | |
| | | * @stream_id: The ID of the stream | |
| | | * | |
| | | * Restarts a single stream as defined in RFC 5245. This function | |
| | | * needs to be called both when initiating (ICE spec section 9.1.1.1. | |
| | | * "ICE Restarts"), as well as when reacting (spec section 9.2.1.1. | |
| | | * "Detecting ICE Restart") to a restart. | |
| | | * | |
| | | * Unlike nice_agent_restart(), this applies to a single stream. It also | |
| | | * does not generate a new tie breaker. | |
| | | * | |
| | | * Returns: %TRUE on success %FALSE on error | |
| | | * | |
| | | * Since: 0.1.6 | |
| | | **/ | |
| | | gboolean | |
| | | nice_agent_restart_stream ( | |
| | | NiceAgent *agent, | |
| | | guint stream_id); | |
| | | | |
| | | /** | |
| * nice_agent_attach_recv: | | * nice_agent_attach_recv: | |
| * @agent: The #NiceAgent Object | | * @agent: The #NiceAgent Object | |
| * @stream_id: The ID of stream | | * @stream_id: The ID of stream | |
| * @component_id: The ID of the component | | * @component_id: The ID of the component | |
| * @ctx: The Glib Mainloop Context to use for listening on the component | | * @ctx: The Glib Mainloop Context to use for listening on the component | |
| * @func: The callback function to be called when data is received on | | * @func: The callback function to be called when data is received on | |
| * the stream's component | | * the stream's component | |
| * @data: user data associated with the callback | | * @data: user data associated with the callback | |
| * | | * | |
| * Attaches the stream's component's sockets to the Glib Mainloop Context i
n | | * Attaches the stream's component's sockets to the Glib Mainloop Context i
n | |
| | | | |
| skipping to change at line 1393 | | skipping to change at line 1415 | |
| * Returns: (transfer full): A #GIOStream. | | * Returns: (transfer full): A #GIOStream. | |
| * | | * | |
| * Since: 0.1.5 | | * Since: 0.1.5 | |
| */ | | */ | |
| GIOStream * | | GIOStream * | |
| nice_agent_get_io_stream ( | | nice_agent_get_io_stream ( | |
| NiceAgent *agent, | | NiceAgent *agent, | |
| guint stream_id, | | guint stream_id, | |
| guint component_id); | | guint component_id); | |
| | | | |
|
| | | /** | |
| | | * nice_component_state_to_string: | |
| | | * @state: a #NiceComponentState | |
| | | * | |
| | | * Returns a string representation of the state, generally to use in debug | |
| | | * messages. | |
| | | * | |
| | | * Returns: (transfer none): a string representation of @state | |
| | | * Since: 0.1.6 | |
| | | */ | |
| | | const gchar * | |
| | | nice_component_state_to_string (NiceComponentState state); | |
| | | | |
| | | /** | |
| | | * nice_agent_forget_relays: | |
| | | * @agent: The #NiceAgent Object | |
| | | * @stream_id: The ID of the stream | |
| | | * @component_id: The ID of the component | |
| | | * | |
| | | * Forget all the relay servers previously added using | |
| | | * nice_agent_set_relay_info(). Currently connected streams will keep | |
| | | * using the relay as long as they have not been restarted and haven't | |
| | | * succesfully negotiated a different path. | |
| | | * | |
| | | * Returns: %FALSE if the component could not be found, %TRUE otherwise | |
| | | * | |
| | | * Since: 0.1.6 | |
| | | */ | |
| | | gboolean | |
| | | nice_agent_forget_relays (NiceAgent *agent, | |
| | | guint stream_id, | |
| | | guint component_id); | |
| | | | |
| G_END_DECLS | | G_END_DECLS | |
| | | | |
| #endif /* _AGENT_H */ | | #endif /* _AGENT_H */ | |
| | | | |
End of changes. 2 change blocks. |
| 0 lines changed or deleted | | 55 lines changed or added | |
|
| debug.h | | debug.h | |
| /* | | /* | |
| * This file is part of the Nice GLib ICE library. | | * This file is part of the Nice GLib ICE library. | |
| * | | * | |
|
| * (C) 2008-2009 Collabora Ltd. | | * (C) 2008 Collabora Ltd. | |
| * Contact: Youness Alaoui | | * Contact: Youness Alaoui | |
|
| * (C) 2007 Nokia Corporation. All rights reserved. | | * (C) 2008 Nokia Corporation. All rights reserved. | |
| * | | * | |
| * The contents of this file are subject to the Mozilla Public License Vers
ion | | * The contents of this file are subject to the Mozilla Public License Vers
ion | |
| * 1.1 (the "License"); you may not use this file except in compliance with | | * 1.1 (the "License"); you may not use this file except in compliance with | |
| * the License. You may obtain a copy of the License at | | * the License. You may obtain a copy of the License at | |
| * http://www.mozilla.org/MPL/ | | * http://www.mozilla.org/MPL/ | |
| * | | * | |
| * Software distributed under the License is distributed on an "AS IS" basi
s, | | * Software distributed under the License is distributed on an "AS IS" basi
s, | |
| * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
| * for the specific language governing rights and limitations under the | | * for the specific language governing rights and limitations under the | |
| * License. | | * License. | |
| | | | |
| skipping to change at line 37 | | skipping to change at line 37 | |
| * the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which | | * the GNU Lesser General Public License Version 2.1 (the "LGPL"), in which | |
| * case the provisions of LGPL are applicable instead of those above. If yo
u | | * case the provisions of LGPL are applicable instead of those above. If yo
u | |
| * wish to allow use of your version of this file only under the terms of t
he | | * wish to allow use of your version of this file only under the terms of t
he | |
| * LGPL and not to allow others to use your version of this file under the | | * LGPL and not to allow others to use your version of this file under the | |
| * MPL, indicate your decision by deleting the provisions above and replace | | * MPL, indicate your decision by deleting the provisions above and replace | |
| * them with the notice and other provisions required by the LGPL. If you d
o | | * them with the notice and other provisions required by the LGPL. If you d
o | |
| * not delete the provisions above, a recipient may use your version of thi
s | | * not delete the provisions above, a recipient may use your version of thi
s | |
| * file under either the MPL or the LGPL. | | * file under either the MPL or the LGPL. | |
| */ | | */ | |
| | | | |
|
| #ifndef STUN_DEBUG_H | | #ifndef _DEBUG_H | |
| #define STUN_DEBUG_H | | #define _DEBUG_H | |
| | | | |
|
| #include <stddef.h> | | /** | |
| | | * SECTION:debug | |
| | | * @short_description: Debug messages utility functions | |
| | | * @stability: Unstable | |
| | | * | |
| | | * <para>Libnice can output a lot of information when debug messages are en | |
| | | abled. | |
| | | * This can significantly help track down problems and/or understand what | |
| | | * it's doing.</para> | |
| | | * | |
| | | * <para>You can enable/disable the debug messages by calling nice_debug_en | |
| | | able() | |
| | | * or nice_debug_disable() and choosing whether you want only ICE debug mes | |
| | | sages | |
| | | * or also stun debug messages.</para> | |
| | | * | |
| | | * <para>By default, the debug messages are disabled, unless the environmen | |
| | | t | |
| | | * variable NICE_DEBUG is set, in which case, it must contain a comma separ | |
| | | ated | |
| | | * list of flags specifying which debug to enable.</para> | |
| | | * <para> The currently available flags are "nice", "stun", "pseudotcp", | |
| | | * "pseudotcp-verbose" or "all" to enable all debug messages.</para> | |
| | | * <para> If the 'pseudotcp' flag is enabled, then 'pseudotcp-verbose' gets | |
| | | * automatically disabled. This is to allow the use of the 'all' flag witho | |
| | | ut | |
| | | * having verbose messages from pseudotcp. You can enable verbose debug mes | |
| | | sages | |
| | | * from the pseudotcp layer by specifying 'pseudotcp-verbose' without the | |
| | | * 'pseudotcp' flag.</para> | |
| | | * | |
| | | * | |
| | | * <para>This API is unstable and is subject to change at any time... | |
| | | * More flags are to come and a better API to enable/disable each flag | |
| | | * should be added.</para> | |
| | | */ | |
| | | | |
| | | #include <glib.h> | |
| | | | |
|
| #ifdef __cplusplus | | G_BEGIN_DECLS | |
| extern "C" { | | | |
| #endif | | | |
| | | | |
| /** | | /** | |
|
| * stun_debug_enable: | | * nice_debug_enable: | |
| | | * @with_stun: Also enable stun debugging messages | |
| * | | * | |
|
| * Enable debug messages to stderr | | * Enables libnice debug output to the terminal | |
| */ | | */ | |
|
| void stun_debug_enable (void); | | void nice_debug_enable (gboolean with_stun); | |
| | | | |
| /** | | /** | |
|
| * stun_debug_disable: | | * nice_debug_disable: | |
| | | * @with_stun: Also disable stun debugging messages | |
| * | | * | |
|
| * Disable debug messages to stderr | | * Disables libnice debug output to the terminal | |
| */ | | */ | |
|
| void stun_debug_disable (void); | | void nice_debug_disable (gboolean with_stun); | |
| | | | |
|
| #if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ | | G_END_DECLS | |
| > 4)) | | | |
| void stun_debug (const char *fmt, ...) | | | |
| __attribute__((__format__ (__printf__, 1, 2))); | | | |
| #else | | | |
| void stun_debug (const char *fmt, ...); | | | |
| #endif | | | |
| void stun_debug_bytes (const void *data, size_t len); | | | |
| | | | |
| # ifdef __cplusplus | | | |
| } | | | |
| # endif | | | |
| | | | |
|
| #endif /* STUN_DEBUG_H */ | | #endif /* _DEBUG_H */ | |
| | | | |
End of changes. 13 change blocks. |
| 26 lines changed or deleted | | 52 lines changed or added | |
|
| ice.h | | ice.h | |
| | | | |
| skipping to change at line 171 | | skipping to change at line 171 | |
| * @compatibility: The compatibility mode to use for processing the connche
ck | | * @compatibility: The compatibility mode to use for processing the connche
ck | |
| * response | | * response | |
| * | | * | |
| * Process an ICE connectivity check STUN message and retreive the | | * Process an ICE connectivity check STUN message and retreive the | |
| * mapped address from the message | | * mapped address from the message | |
| * <para> See also stun_usage_ice_conncheck_priority() and | | * <para> See also stun_usage_ice_conncheck_priority() and | |
| * stun_usage_ice_conncheck_use_candidate() </para> | | * stun_usage_ice_conncheck_use_candidate() </para> | |
| * Returns: A #StunUsageIceReturn value | | * Returns: A #StunUsageIceReturn value | |
| */ | | */ | |
| StunUsageIceReturn stun_usage_ice_conncheck_process (StunMessage *msg, | | StunUsageIceReturn stun_usage_ice_conncheck_process (StunMessage *msg, | |
|
| struct sockaddr *addr, socklen_t *addrlen, | | struct sockaddr_storage *addr, socklen_t *addrlen, | |
| StunUsageIceCompatibility compatibility); | | StunUsageIceCompatibility compatibility); | |
| | | | |
| /** | | /** | |
| * stun_usage_ice_conncheck_create_reply: | | * stun_usage_ice_conncheck_create_reply: | |
| * @agent: The #StunAgent to use to build the response | | * @agent: The #StunAgent to use to build the response | |
| * @req: The original STUN request to reply to | | * @req: The original STUN request to reply to | |
| * @msg: The #StunMessage to build | | * @msg: The #StunMessage to build | |
| * @buf: The buffer to use for creating the #StunMessage | | * @buf: The buffer to use for creating the #StunMessage | |
| * @plen: A pointer containing the size of the @buffer on input. | | * @plen: A pointer containing the size of the @buffer on input. | |
| * Will contain the length of the message built on output. | | * Will contain the length of the message built on output. | |
| | | | |
| skipping to change at line 207 | | skipping to change at line 207 | |
| In case of error, the @msg is filled with the appropriate error respon
se | | In case of error, the @msg is filled with the appropriate error respon
se | |
| to be sent and the value of @plen is set to the size of that message. | | to be sent and the value of @plen is set to the size of that message. | |
| If @plen has a size of 0, then no error response should be sent. | | If @plen has a size of 0, then no error response should be sent. | |
| </para> | | </para> | |
| </note> | | </note> | |
| * Returns: A #StunUsageIceReturn value | | * Returns: A #StunUsageIceReturn value | |
| */ | | */ | |
| StunUsageIceReturn | | StunUsageIceReturn | |
| stun_usage_ice_conncheck_create_reply (StunAgent *agent, StunMessage *req, | | stun_usage_ice_conncheck_create_reply (StunAgent *agent, StunMessage *req, | |
| StunMessage *msg, uint8_t *buf, size_t *plen, | | StunMessage *msg, uint8_t *buf, size_t *plen, | |
|
| const struct sockaddr *src, socklen_t srclen, | | const struct sockaddr_storage *src, socklen_t srclen, | |
| bool *control, uint64_t tie, | | bool *control, uint64_t tie, | |
| StunUsageIceCompatibility compatibility); | | StunUsageIceCompatibility compatibility); | |
| | | | |
| /** | | /** | |
| * stun_usage_ice_conncheck_priority: | | * stun_usage_ice_conncheck_priority: | |
| * @msg: The #StunMessage to parse | | * @msg: The #StunMessage to parse | |
| * | | * | |
| * Extracts the priority from a STUN message. | | * Extracts the priority from a STUN message. | |
| * Returns: host byte order priority, or 0 if not specified. | | * Returns: host byte order priority, or 0 if not specified. | |
| */ | | */ | |
| | | | |
End of changes. 2 change blocks. |
| 2 lines changed or deleted | | 2 lines changed or added | |
|
| stunmessage.h | | stunmessage.h | |
| | | | |
| skipping to change at line 641 | | skipping to change at line 641 | |
| * address. | | * address. | |
| * | | * | |
| * Extracts a network address attribute from a STUN message. | | * Extracts a network address attribute from a STUN message. | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | | * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | |
| * wrong or if the @addrlen is too small | | * wrong or if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_find_addr (const StunMessage *msg, | | StunMessageReturn stun_message_find_addr (const StunMessage *msg, | |
|
| StunAttribute type, struct sockaddr *addr, socklen_t *addrlen); | | StunAttribute type, struct sockaddr_storage *addr, socklen_t *addrlen); | |
| | | | |
| /** | | /** | |
| * stun_message_find_xor_addr: | | * stun_message_find_xor_addr: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @type: The #StunAttribute to find | | * @type: The #StunAttribute to find | |
| * @addr: The #sockaddr to be filled | | * @addr: The #sockaddr to be filled | |
| * @addrlen: The size of the @addr variable. Must be set to the size of the | | * @addrlen: The size of the @addr variable. Must be set to the size of the | |
| * @addr socket address and will be set to the size of the | | * @addr socket address and will be set to the size of the | |
| * extracted socket address. | | * extracted socket address. | |
| * | | * | |
| * Extracts an obfuscated network address attribute from a STUN message. | | * Extracts an obfuscated network address attribute from a STUN message. | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | | * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | |
| * wrong or if the @addrlen is too small | | * wrong or if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_find_xor_addr (const StunMessage *msg, | | StunMessageReturn stun_message_find_xor_addr (const StunMessage *msg, | |
|
| StunAttribute type, struct sockaddr *addr, socklen_t *addrlen); | | StunAttribute type, struct sockaddr_storage *addr, socklen_t *addrlen); | |
| | | | |
| /** | | /** | |
| * stun_message_find_xor_addr_full: | | * stun_message_find_xor_addr_full: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @type: The #StunAttribute to find | | * @type: The #StunAttribute to find | |
| * @addr: The #sockaddr to be filled | | * @addr: The #sockaddr to be filled | |
| * @addrlen: The size of the @addr variable. Must be set to the size of the | | * @addrlen: The size of the @addr variable. Must be set to the size of the | |
| * @addr socket address and will be set to the size of the | | * @addr socket address and will be set to the size of the | |
| * extracted socket address. | | * extracted socket address. | |
| * @magic_cookie: The magic cookie to use to XOR the address. | | * @magic_cookie: The magic cookie to use to XOR the address. | |
| * | | * | |
| * Extracts an obfuscated network address attribute from a STUN message. | | * Extracts an obfuscated network address attribute from a STUN message. | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | | * %STUN_MESSAGE_RETURN_INVALID is returned if the attribute payload size i
s | |
| * wrong or if the @addrlen is too small | | * wrong or if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_find_xor_addr_full (const StunMessage *msg, | | StunMessageReturn stun_message_find_xor_addr_full (const StunMessage *msg, | |
|
| StunAttribute type, struct sockaddr *addr, | | StunAttribute type, struct sockaddr_storage *addr, | |
| socklen_t *addrlen, uint32_t magic_cookie); | | socklen_t *addrlen, uint32_t magic_cookie); | |
| | | | |
| /** | | /** | |
| * stun_message_find_error: | | * stun_message_find_error: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @code: A pointer where to store the value | | * @code: A pointer where to store the value | |
| * | | * | |
| * Extract the error response code from a STUN message | | * Extract the error response code from a STUN message | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| | | | |
| skipping to change at line 789 | | skipping to change at line 789 | |
| * @addr: The #sockaddr to be append | | * @addr: The #sockaddr to be append | |
| * @addrlen: The size of the @addr variable. | | * @addrlen: The size of the @addr variable. | |
| * | | * | |
| * Append a network address attribute to a STUN message | | * Append a network address attribute to a STUN message | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | | * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_append_addr (StunMessage * msg, | | StunMessageReturn stun_message_append_addr (StunMessage * msg, | |
|
| StunAttribute type, const struct sockaddr *addr, socklen_t addrlen); | | StunAttribute type, const struct sockaddr_storage *addr, socklen_t addr
len); | |
| | | | |
| /** | | /** | |
| * stun_message_append_xor_addr: | | * stun_message_append_xor_addr: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @type: The #StunAttribute to append | | * @type: The #StunAttribute to append | |
| * @addr: The #sockaddr to be append | | * @addr: The #sockaddr to be append | |
| * @addrlen: The size of the @addr variable. | | * @addrlen: The size of the @addr variable. | |
| * | | * | |
| * Append an obfuscated network address attribute to a STUN message | | * Append an obfuscated network address attribute to a STUN message | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | | * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_append_xor_addr (StunMessage * msg, | | StunMessageReturn stun_message_append_xor_addr (StunMessage * msg, | |
|
| StunAttribute type, const struct sockaddr *addr, socklen_t addrlen); | | StunAttribute type, const struct sockaddr_storage *addr, socklen_t addr
len); | |
| | | | |
| /** | | /** | |
| * stun_message_append_xor_addr_full: | | * stun_message_append_xor_addr_full: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @type: The #StunAttribute to append | | * @type: The #StunAttribute to append | |
| * @addr: The #sockaddr to be append | | * @addr: The #sockaddr to be append | |
| * @addrlen: The size of the @addr variable. | | * @addrlen: The size of the @addr variable. | |
| * @magic_cookie: The magic cookie to use to XOR the address. | | * @magic_cookie: The magic cookie to use to XOR the address. | |
| * | | * | |
| * Append an obfuscated network address attribute from a STUN message. | | * Append an obfuscated network address attribute from a STUN message. | |
| * | | * | |
| * Returns: A #StunMessageReturn value. | | * Returns: A #StunMessageReturn value. | |
| * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | | * %STUN_MESSAGE_RETURN_INVALID is returned if the @addrlen is too small | |
| * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | | * %STUN_MESSAGE_RETURN_UNSUPPORTED_ADDRESS if the address family is unknow
n. | |
| */ | | */ | |
| StunMessageReturn stun_message_append_xor_addr_full (StunMessage * msg, | | StunMessageReturn stun_message_append_xor_addr_full (StunMessage * msg, | |
|
| StunAttribute type, const struct sockaddr *addr, socklen_t addrlen, | | StunAttribute type, const struct sockaddr_storage *addr, socklen_t addr
len, | |
| uint32_t magic_cookie); | | uint32_t magic_cookie); | |
| | | | |
| /** | | /** | |
| * stun_message_append_error: | | * stun_message_append_error: | |
| * @msg: The #StunMessage | | * @msg: The #StunMessage | |
| * @code: The error code value | | * @code: The error code value | |
| * | | * | |
| * Appends the ERROR-CODE attribute to the STUN message and fills it accord
ing | | * Appends the ERROR-CODE attribute to the STUN message and fills it accord
ing | |
| * to #code | | * to #code | |
| * | | * | |
| | | | |
End of changes. 6 change blocks. |
| 6 lines changed or deleted | | 6 lines changed or added | |
|
| turn.h | | turn.h | |
| | | | |
| skipping to change at line 212 | | skipping to change at line 212 | |
| uint8_t *username, size_t username_len, | | uint8_t *username, size_t username_len, | |
| uint8_t *password, size_t password_len, | | uint8_t *password, size_t password_len, | |
| StunUsageTurnCompatibility compatibility); | | StunUsageTurnCompatibility compatibility); | |
| | | | |
| size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *ms
g, | | size_t stun_usage_turn_create_permission (StunAgent *agent, StunMessage *ms
g, | |
| uint8_t *buffer, size_t buffer_len, | | uint8_t *buffer, size_t buffer_len, | |
| uint8_t *username, size_t username_len, | | uint8_t *username, size_t username_len, | |
| uint8_t *password, size_t password_len, | | uint8_t *password, size_t password_len, | |
| uint8_t *realm, size_t realm_len, | | uint8_t *realm, size_t realm_len, | |
| uint8_t *nonce, size_t nonce_len, | | uint8_t *nonce, size_t nonce_len, | |
|
| struct sockaddr *peer, | | struct sockaddr_storage *peer, | |
| StunUsageTurnCompatibility compatibility); | | StunUsageTurnCompatibility compatibility); | |
| | | | |
| /** | | /** | |
| * stun_usage_turn_process: | | * stun_usage_turn_process: | |
| * @msg: The message containing the response | | * @msg: The message containing the response | |
| * @relay_addr: A pointer to a #sockaddr structure to fill with the relay a
ddress | | * @relay_addr: A pointer to a #sockaddr structure to fill with the relay a
ddress | |
| * that the TURN server allocated for us | | * that the TURN server allocated for us | |
| * @relay_addrlen: The length of @relay_addr | | * @relay_addrlen: The length of @relay_addr | |
| * @addr: A pointer to a #sockaddr structure to fill with the mapped addres
s | | * @addr: A pointer to a #sockaddr structure to fill with the mapped addres
s | |
| * that the STUN response contains. | | * that the STUN response contains. | |
| | | | |
| skipping to change at line 242 | | skipping to change at line 242 | |
| * @bandwidth: A pointer to fill with the bandwidth the TURN server allocat
ed us | | * @bandwidth: A pointer to fill with the bandwidth the TURN server allocat
ed us | |
| * @lifetime: A pointer to fill with the lifetime of the allocation | | * @lifetime: A pointer to fill with the lifetime of the allocation | |
| * @compatibility: The compatibility mode to use for processing the Allocat
ion | | * @compatibility: The compatibility mode to use for processing the Allocat
ion | |
| * response | | * response | |
| * | | * | |
| * Process a TURN Allocate response and extract the necessary information f
rom | | * Process a TURN Allocate response and extract the necessary information f
rom | |
| * the message | | * the message | |
| * Returns: A #StunUsageTurnReturn value | | * Returns: A #StunUsageTurnReturn value | |
| */ | | */ | |
| StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg, | | StunUsageTurnReturn stun_usage_turn_process (StunMessage *msg, | |
|
| struct sockaddr *relay_addr, socklen_t *relay_addrlen, | | struct sockaddr_storage *relay_addr, socklen_t *relay_addrlen, | |
| struct sockaddr *addr, socklen_t *addrlen, | | struct sockaddr_storage *addr, socklen_t *addrlen, | |
| struct sockaddr *alternate_server, socklen_t *alternate_server_len, | | struct sockaddr_storage *alternate_server, socklen_t *alternate_server_ | |
| | | len, | |
| uint32_t *bandwidth, uint32_t *lifetime, | | uint32_t *bandwidth, uint32_t *lifetime, | |
| StunUsageTurnCompatibility compatibility); | | StunUsageTurnCompatibility compatibility); | |
| | | | |
| /** | | /** | |
| * stun_usage_turn_refresh_process: | | * stun_usage_turn_refresh_process: | |
| * @msg: The message containing the response | | * @msg: The message containing the response | |
| * @lifetime: A pointer to fill with the lifetime of the allocation | | * @lifetime: A pointer to fill with the lifetime of the allocation | |
| * @compatibility: The compatibility mode to use for processing the Refresh | | * @compatibility: The compatibility mode to use for processing the Refresh | |
| * response | | * response | |
| * | | * | |
| | | | |
End of changes. 2 change blocks. |
| 4 lines changed or deleted | | 5 lines changed or added | |
|