#include "config.h"
#include <sofia-sip/stun.h>
#include <sofia-sip/su_tagarg.h>
#include "tport_internal.h"
#include "sofia-sip/msg_buffer.h"
#include "sofia-sip/msg_addr.h"
#include <assert.h>
Include dependency graph for tport_stub_stun.c:
Functions | |
int | tport_init_stun_server (tport_master_t *mr, tagi_t const *tags) |
Initialize stun server. | |
void | tport_deinit_stun_server (tport_master_t *mr) |
Deinit stun server. | |
int | tport_recv_stun_dgram (tport_t const *self, msg_t **in_out_msg, su_sockaddr_t *from, socklen_t fromlen) |
Process stun messagee. | |
int | tport_keepalive (tport_t *tp, su_addrinfo_t const *ai, tag_type_t tag, tag_value_t value,...) |
Initialize STUN keepalives. | |
int | tport_plug_in_stun_server (tport_stun_server_vtable_t const *vtable) |
Plug in stun server. |
int tport_plug_in_stun_server | ( | tport_stun_server_vtable_t const * | vtable | ) |
Plug in stun server.
int tport_recv_stun_dgram | ( | tport_t const * | self, | |
msg_t ** | in_out_msg, | |||
su_sockaddr_t * | from, | |||
socklen_t | fromlen | |||
) |
Process stun messagee.
-1 | error | |
3 | stun message received, ignore |