BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJNATH Reference

nat_detect.h
1/*
2 * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
3 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19#ifndef __PJNATH_NAT_DETECT_H__
20#define __PJNATH_NAT_DETECT_H__
21
26#include <pjnath/stun_session.h>
27
28
30
31
48typedef enum pj_stun_nat_type
49{
54
60
67
73
80
88
99
108
117
119
120
125{
132
136 const char *status_text;
137
143
147 const char *nat_type_name;
148
150
151
156typedef void pj_stun_nat_detect_cb(void *user_data,
157 const pj_stun_nat_detect_result *res);
158
159
167PJ_DECL(const char*) pj_stun_get_nat_name(pj_stun_nat_type type);
168
169
195 pj_stun_config *stun_cfg,
196 void *user_data,
198
199
219 pj_stun_config *stun_cfg,
220 void *user_data,
222
223
230
231
232#endif /* __PJNATH_NAT_DETECT_H__ */
233
pj_stun_nat_type
Definition: nat_detect.h:49
pj_status_t pj_stun_detect_nat_type(const pj_sockaddr_in *server, pj_stun_config *stun_cfg, void *user_data, pj_stun_nat_detect_cb *cb)
pj_status_t pj_stun_detect_nat_type2(const pj_sockaddr *server, pj_stun_config *stun_cfg, void *user_data, pj_stun_nat_detect_cb *cb)
void pj_stun_nat_detect_cb(void *user_data, const pj_stun_nat_detect_result *res)
Definition: nat_detect.h:156
const char * pj_stun_get_nat_name(pj_stun_nat_type type)
@ PJ_STUN_NAT_TYPE_RESTRICTED
Definition: nat_detect.h:107
@ PJ_STUN_NAT_TYPE_ERR_UNKNOWN
Definition: nat_detect.h:59
@ PJ_STUN_NAT_TYPE_BLOCKED
Definition: nat_detect.h:72
@ PJ_STUN_NAT_TYPE_SYMMETRIC_UDP
Definition: nat_detect.h:79
@ PJ_STUN_NAT_TYPE_FULL_CONE
Definition: nat_detect.h:87
@ PJ_STUN_NAT_TYPE_PORT_RESTRICTED
Definition: nat_detect.h:116
@ PJ_STUN_NAT_TYPE_SYMMETRIC
Definition: nat_detect.h:98
@ PJ_STUN_NAT_TYPE_OPEN
Definition: nat_detect.h:66
@ PJ_STUN_NAT_TYPE_UNKNOWN
Definition: nat_detect.h:53
int pj_status_t
#define PJ_BEGIN_DECL
#define PJ_END_DECL
Definition: stun_config.h:48
Definition: nat_detect.h:125
pj_stun_nat_type nat_type
Definition: nat_detect.h:142
pj_status_t status
Definition: nat_detect.h:131
const char * status_text
Definition: nat_detect.h:136
const char * nat_type_name
Definition: nat_detect.h:147
STUN session management for client/server.

 


PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
Copyright (C) 2006-2009 Teluu Inc.