Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

errors.h

Go to the documentation of this file.
00001 /*
00002  * Active Router Transport Protocol (ARTP) implementation
00003  * Copyright (c) 2004, Tomas Rebok
00004  * All rights reserved.
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the "BSD License" which is
00008  * distributed with the software in the file LICENSE.
00009  *
00010  * This program is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the BSD
00013  * License for more details.
00014  */
00015 
00023 #ifndef ARTP_ERRORS_H
00024 #define ARTP_ERRORS_H   1
00025 
00026 
00028 enum artp_errors {
00030     E_GENERIC_ERROR = -1,
00031 
00033     E_MEMORY_FAIL = -2,
00034 
00036     E_EMPTY_BUFFER = -3,
00037 
00039     E_FULL_BUFFER = -4,
00040 
00042     E_DEAD_SESSION = -5,
00043 
00045     E_START_THREADS = -6,
00046 
00048     E_BUF_INIT_ERROR = -7,
00049 
00051     E_OPENING_FILE = -8,
00052 
00054     E_SYNTAX_ERROR = -9,
00055 
00057     E_BAD_VALUE = -10,
00058 
00060     E_INVALID_BUFFER_ID = -11,
00061 
00063     E_NO_AVAIL_SID = -12,
00064 
00066     E_NONEST_SESSION = -13,
00067 
00069     E_SESSION_EXISTS = -14,
00070 
00072     E_PACKET_NOT_FOUND = -15,
00073 
00075     E_DUPLICITY_PACKET = -16,
00076         
00078     E_INVALID_OPTION = -17,
00079 
00081     E_INVALID_OPT_SIZE = -18,
00082 
00084     E_INVALID_OPT_VALUE = -19,
00085 
00087     E_BAD_OPT_USE = -20,
00088 
00090     E_SENDING_ERROR = -21,
00091 
00093     E_FULL_CWND = -22,
00094 
00096     E_INVALID_PARAMETER = -23,
00097 
00099     E_BAD_PARAM_VALUE = -24,
00100 
00102     E_NO_ACK = -25,
00103 
00105     E_NULL_PTR = -26,
00106 
00108     E_UNSUPPORTED_AF = -27,
00109 
00111     E_DIFF_ADDR = -28,
00112 
00114     E_BAD_DGRAM = -29,
00115 
00117     E_BIG_DGRAM = -30,
00118 
00120     E_SMALL_MSS = -31,
00121 
00123     E_PARTNER_MSS = -32,
00124 
00126     E_BAD_PACKET_TYPE = -33
00127 };
00128 
00129 
00143 extern char *
00144 artp_error_str(enum artp_errors error_code);
00145 
00146 
00147 #endif
00148 
00149 /* vim: set ts=4 : */

Generated on Fri May 21 07:50:24 2004 for Active Router Transport Protocol (ARTP) by doxygen1.2.15