Home --> Documentations --> PJNATH Reference

errno.h
1 /* $Id: errno.h 3553 2011-05-05 06:14:19Z nanang $ */
2 /*
3  * Copyright (C) 2008-2011 Teluu Inc. (http://www.teluu.com)
4  * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19  */
20 #ifndef __PJNATH_ERRNO_H__
21 #define __PJNATH_ERRNO_H__
22 
28 #include <pj/errno.h>
29 
41 #define PJNATH_ERRNO_START (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*4)
42 
43 
44 /************************************************************
45  * STUN MESSAGING ERRORS
46  ***********************************************************/
47 
51 #define PJ_STATUS_FROM_STUN_CODE(code) (PJNATH_ERRNO_START+code)
52 
57 #define PJNATH_EINSTUNMSG (PJNATH_ERRNO_START+1) /* 370001 */
58 
62 #define PJNATH_EINSTUNMSGLEN (PJNATH_ERRNO_START+2) /* 370002 */
63 
67 #define PJNATH_EINSTUNMSGTYPE (PJNATH_ERRNO_START+3) /* 370003 */
68 
72 #define PJNATH_ESTUNTIMEDOUT (PJNATH_ERRNO_START+4) /* 370004 */
73 
74 
79 #define PJNATH_ESTUNTOOMANYATTR (PJNATH_ERRNO_START+21) /* 370021 */
80 
84 #define PJNATH_ESTUNINATTRLEN (PJNATH_ERRNO_START+22) /* 370022 */
85 
89 #define PJNATH_ESTUNDUPATTR (PJNATH_ERRNO_START+23) /* 370023 */
90 
95 #define PJNATH_ESTUNFINGERPRINT (PJNATH_ERRNO_START+30) /* 370030 */
96 
100 #define PJNATH_ESTUNMSGINTPOS (PJNATH_ERRNO_START+31) /* 370031 */
101 
105 #define PJNATH_ESTUNFINGERPOS (PJNATH_ERRNO_START+33) /* 370033 */
106 
107 
112 #define PJNATH_ESTUNNOMAPPEDADDR (PJNATH_ERRNO_START+40) /* 370040 */
113 
117 #define PJNATH_ESTUNIPV6NOTSUPP (PJNATH_ERRNO_START+41) /* 370041 */
118 
122 #define PJNATH_EINVAF (PJNATH_ERRNO_START+42) /* 370042 */
123 
128 #define PJNATH_ESTUNINSERVER (PJNATH_ERRNO_START+50) /* 370050 */
129 
130 
131 /************************************************************
132  * STUN SESSION/TRANSPORT ERROR CODES
133  ***********************************************************/
138 #define PJNATH_ESTUNDESTROYED (PJNATH_ERRNO_START+60) /* 370060 */
139 
140 
141 /************************************************************
142  * ICE ERROR CODES
143  ***********************************************************/
144 
149 #define PJNATH_ENOICE (PJNATH_ERRNO_START+80) /* 370080 */
150 
154 #define PJNATH_EICEINPROGRESS (PJNATH_ERRNO_START+81) /* 370081 */
155 
164 #define PJNATH_EICEFAILED (PJNATH_ERRNO_START+82) /* 370082 */
165 
169 #define PJNATH_EICEMISMATCH (PJNATH_ERRNO_START+83) /* 370083 */
170 
174 #define PJNATH_EICEINCOMPID (PJNATH_ERRNO_START+86) /* 370086 */
175 
179 #define PJNATH_EICEINCANDID (PJNATH_ERRNO_START+87) /* 370087 */
180 
186 #define PJNATH_EICEINSRCADDR (PJNATH_ERRNO_START+88) /* 370088 */
187 
191 #define PJNATH_EICEMISSINGSDP (PJNATH_ERRNO_START+90) /* 370090 */
192 
196 #define PJNATH_EICEINCANDSDP (PJNATH_ERRNO_START+91) /* 370091 */
197 
203 #define PJNATH_EICENOHOSTCAND (PJNATH_ERRNO_START+92) /* 370092 */
204 
209 #define PJNATH_EICENOMTIMEOUT (PJNATH_ERRNO_START+93) /* 370093 */
210 
211 /************************************************************
212  * TURN ERROR CODES
213  ***********************************************************/
218 #define PJNATH_ETURNINTP (PJNATH_ERRNO_START+120) /* 370120 */
219 
220 
221 
226 #endif /* __PJNATH_ERRNO_H__ */

 


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