|
HOME
SIP/media Features
High Performance SIP
Small Footprint SIP
Symbian Port
FAQ
Documentation
Licensing
Download
Development (Trac)
Projects using pjsip
Mailing List
Open Source Links
About: PJLIB, PJLIB-UTIL, PJSIP, and PJMEDIA are created by: Benny Prijono <bennylp pjsip.org>
|
|
Home --> Documentations --> PJNATH Reference
nat_detect.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __PJNATH_NAT_DETECT_H__
00020 #define __PJNATH_NAT_DETECT_H__
00021
00026 #include <pjnath/stun_session.h>
00027
00028
00029 PJ_BEGIN_DECL
00030
00031
00047 typedef enum pj_stun_nat_type
00048 {
00052 PJ_STUN_NAT_TYPE_UNKNOWN,
00053
00058 PJ_STUN_NAT_TYPE_ERR_UNKNOWN,
00059
00065 PJ_STUN_NAT_TYPE_OPEN,
00066
00071 PJ_STUN_NAT_TYPE_BLOCKED,
00072
00078 PJ_STUN_NAT_TYPE_SYMMETRIC_UDP,
00079
00086 PJ_STUN_NAT_TYPE_FULL_CONE,
00087
00097 PJ_STUN_NAT_TYPE_SYMMETRIC,
00098
00106 PJ_STUN_NAT_TYPE_RESTRICTED,
00107
00115 PJ_STUN_NAT_TYPE_PORT_RESTRICTED
00116
00117 } pj_stun_nat_type;
00118
00119
00123 typedef struct pj_stun_nat_detect_result
00124 {
00130 pj_status_t status;
00131
00135 const char *status_text;
00136
00141 pj_stun_nat_type nat_type;
00142
00146 const char *nat_type_name;
00147
00148 } pj_stun_nat_detect_result;
00149
00150
00155 typedef void pj_stun_nat_detect_cb(void *user_data,
00156 const pj_stun_nat_detect_result *res);
00157
00158
00166 PJ_DECL(const char*) pj_stun_get_nat_name(pj_stun_nat_type type);
00167
00168
00191 PJ_DECL(pj_status_t) pj_stun_detect_nat_type(const pj_sockaddr_in *server,
00192 pj_stun_config *stun_cfg,
00193 void *user_data,
00194 pj_stun_nat_detect_cb *cb);
00195
00196
00202 PJ_END_DECL
00203
00204
00205 #endif
00206
PJNATH - Open Source NAT traversal helper library supporting STUN, TURN, and ICE
(C)2001-2008 Benny Prijono
|
|