You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
9 years ago
|
/*
|
||
|
* Secure Network Transport Layer Library v2 implementation.
|
||
|
* (sntllv2) it superseed all versions before due to the:
|
||
|
* - memory consumption
|
||
|
* - new features such as pulse emitting
|
||
|
* - performance optimization
|
||
|
*
|
||
|
* This is a proprietary software. See COPYING for further details.
|
||
|
*
|
||
|
* (c) Askele Group 2013-2015 <http://askele.com>
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef __SNTL_ERRNO_H__
|
||
|
#define __SNTL_ERRNO_H__
|
||
|
|
||
|
#define __SNTL_EPREFIX 200
|
||
|
|
||
|
#define SNE_SUCCESS 200
|
||
|
#define SNE_FAILED 201
|
||
|
#define SNE_ENOMEM 202
|
||
|
#define SNE_BADPROTO 203
|
||
|
#define SNE_ENORPC 204
|
||
|
#define SNE_EPERM 205
|
||
|
#define SNE_TOOLONG 206
|
||
|
#define SNE_EBUSY 207
|
||
|
#define SNE_WOULDBLOCK 208
|
||
|
#define SNE_LINKERROR 209
|
||
|
#define SNE_NOSUCHMSG 210
|
||
|
#define SNE_NOSUCHCHAN 211
|
||
|
#define SNE_ETIMEDOUT 212
|
||
|
#define SNE_IGNORED 213
|
||
|
#define SNE_REPLYREQ 214
|
||
|
#define SNE_RAPIDMSG 215
|
||
|
|
||
|
/* some old errors for compatibility */
|
||
|
#define ESXOREPLYREQ SNE_REPLYREQ /* protocol require reply with expression,
|
||
|
* or expression return for the request */
|
||
|
#define ESXOTIMEDOUT SNE_ETIMEDOUT /* timedout */
|
||
|
#define ESXRCBADPROT SNE_BADPROTO /* invalid protocol */
|
||
|
#define ESXNOCONNECT SNE_LINKERROR /* connection is lost */
|
||
|
#define ESXNOCHANSUP SNE_NOSUCHCHAN
|
||
|
#define ESXRAPIDREPLY SNE_RAPIDMSG
|
||
|
|
||
|
const char *sntll_errno2cstr(int);
|
||
|
|
||
|
#endif /* __SNTL_ERRNO_H__ */
|
||
|
|