|
stun 1.12.11devel
|
STUN client interface. More...
#include <sofia-sip/su_wait.h>#include <sofia-sip/su_tag.h>#include "sofia-sip/stun.h"#include "sofia-sip/stun_common.h"#include <sofia-sip/su_debug.h>
Go to the source code of this file.
Macros | |
| #define | STUN_INTERNAL_H |
| Defined when <stun_internal.h> has been included. | |
| #define | STUN_LIFETIME_EST |
| 6 min? | |
| #define | STUN_LIFETIME_MAX |
| 30 min? | |
| #define | STUN_LIFETIME_CI |
| 5 sec confidence interval | |
Functions | |
| int | stun_is_requested (tag_type_t tag, tag_value_t value,...) |
| Check if a STUN handle should be created. More... | |
| int | stun_make_sharedsecret_req (stun_msg_t *msg) |
| Compose a STUN message of the format defined by stun_msg_t result encoded in enc_buf ready for sending as well. | |
| int | stun_make_binding_req (stun_handle_t *se, stun_request_t *req, stun_msg_t *msg, tag_type_t, tag_value_t,...) |
| Compose a STUN message of the format defined by stun_msg_t. | |
| int | stun_process_binding_response (stun_msg_t *msg) |
| process binding response | |
| int | stun_process_error_response (stun_msg_t *msg) |
| process binding error response Report error and return | |
| int | stun_atoaddr (su_home_t *home, int ai_family, su_addrinfo_t *info, char const *in) |
| Converts character address format to sockaddr_in. | |
STUN client interface.
| int stun_is_requested | ( | tag_type_t | tag, |
| tag_value_t | value, | ||
| ... | |||
| ) |
Check if a STUN handle should be created.
Return true if STUNTAG_SERVER() or STUNTAG_DOMAIN() tags have been specified, or otherwise if STUN_SERVER environment variable is set.
| tag,value,... | tag-value list |