WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJNATH Reference

errno.h
Go to the documentation of this file.
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_ERRNO_H__
20#define __PJNATH_ERRNO_H__
21
27#include <pj/errno.h>
28
40#define PJNATH_ERRNO_START (PJ_ERRNO_START_USER + PJ_ERRNO_SPACE_SIZE*4)
41
42
43/************************************************************
44 * STUN MESSAGING ERRORS
45 ***********************************************************/
46
50#define PJ_STATUS_FROM_STUN_CODE(code) (PJNATH_ERRNO_START+code)
51
56#define PJNATH_EINSTUNMSG (PJNATH_ERRNO_START+1) /* 370001 */
61#define PJNATH_EINSTUNMSGLEN (PJNATH_ERRNO_START+2) /* 370002 */
66#define PJNATH_EINSTUNMSGTYPE (PJNATH_ERRNO_START+3) /* 370003 */
71#define PJNATH_ESTUNTIMEDOUT (PJNATH_ERRNO_START+4) /* 370004 */
72
73
78#define PJNATH_ESTUNTOOMANYATTR (PJNATH_ERRNO_START+21) /* 370021 */
83#define PJNATH_ESTUNINATTRLEN (PJNATH_ERRNO_START+22) /* 370022 */
88#define PJNATH_ESTUNDUPATTR (PJNATH_ERRNO_START+23) /* 370023 */
89
94#define PJNATH_ESTUNFINGERPRINT (PJNATH_ERRNO_START+30) /* 370030 */
99#define PJNATH_ESTUNMSGINTPOS (PJNATH_ERRNO_START+31) /* 370031 */
104#define PJNATH_ESTUNFINGERPOS (PJNATH_ERRNO_START+33) /* 370033 */
105
106
111#define PJNATH_ESTUNNOMAPPEDADDR (PJNATH_ERRNO_START+40) /* 370040 */
116#define PJNATH_ESTUNIPV6NOTSUPP (PJNATH_ERRNO_START+41) /* 370041 */
121#define PJNATH_EINVAF (PJNATH_ERRNO_START+42) /* 370042 */
122
127#define PJNATH_ESTUNINSERVER (PJNATH_ERRNO_START+50) /* 370050 */
128
129
130/************************************************************
131 * STUN SESSION/TRANSPORT ERROR CODES
132 ***********************************************************/
137#define PJNATH_ESTUNDESTROYED (PJNATH_ERRNO_START+60) /* 370060 */
138
139
140/************************************************************
141 * ICE ERROR CODES
142 ***********************************************************/
143
148#define PJNATH_ENOICE (PJNATH_ERRNO_START+80) /* 370080 */
153#define PJNATH_EICEINPROGRESS (PJNATH_ERRNO_START+81) /* 370081 */
163#define PJNATH_EICEFAILED (PJNATH_ERRNO_START+82) /* 370082 */
168#define PJNATH_EICEMISMATCH (PJNATH_ERRNO_START+83) /* 370083 */
173#define PJNATH_EICEINCOMPID (PJNATH_ERRNO_START+86) /* 370086 */
178#define PJNATH_EICEINCANDID (PJNATH_ERRNO_START+87) /* 370087 */
185#define PJNATH_EICEINSRCADDR (PJNATH_ERRNO_START+88) /* 370088 */
190#define PJNATH_EICEMISSINGSDP (PJNATH_ERRNO_START+90) /* 370090 */
195#define PJNATH_EICEINCANDSDP (PJNATH_ERRNO_START+91) /* 370091 */
202#define PJNATH_EICENOHOSTCAND (PJNATH_ERRNO_START+92) /* 370092 */
208#define PJNATH_EICENOMTIMEOUT (PJNATH_ERRNO_START+93) /* 370093 */
209
210/************************************************************
211 * TURN ERROR CODES
212 ***********************************************************/
217#define PJNATH_ETURNINTP (PJNATH_ERRNO_START+120) /* 370120 */
218
219
220
225#endif /* __PJNATH_ERRNO_H__ */

 


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