tport_stub_stun.c File Reference


Detailed Description

Stub interface for STUN.

Author:
Pekka Pessi <Pekka.Pessi@nokia-email.address.hidden>
Date:
Created: Fri Mar 31 12:31:36 EEST 2006

#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.

Function Documentation

int tport_plug_in_stun_server ( tport_stun_server_vtable_t const *  vtable  ) 

Plug in stun server.

Note:
This function must be called before any transport is initialized.

int tport_recv_stun_dgram ( tport_t const *  self,
msg_t **  in_out_msg,
su_sockaddr_t *  from,
socklen_t  fromlen 
)

Process stun messagee.

Return values:
-1 error
3 stun message received, ignore


Sofia-SIP 1.12.1 - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.