dtn_errno.h

Go to the documentation of this file.
00001 /*
00002  *    Copyright 2005-2006 Intel Corporation
00003  * 
00004  *    Licensed under the Apache License, Version 2.0 (the "License");
00005  *    you may not use this file except in compliance with the License.
00006  *    You may obtain a copy of the License at
00007  * 
00008  *        http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  *    Unless required by applicable law or agreed to in writing, software
00011  *    distributed under the License is distributed on an "AS IS" BASIS,
00012  *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  *    See the License for the specific language governing permissions and
00014  *    limitations under the License.
00015  */
00016 
00017 #ifndef DTN_ERRNO_H
00018 #define DTN_ERRNO_H
00019 
00023 #define DTN_SUCCESS     0               /* ok */
00024 #define DTN_ERRBASE     128             /* Base error code */
00025 #define DTN_EINVAL      (DTN_ERRBASE+1) /* invalid argument */
00026 #define DTN_EXDR        (DTN_ERRBASE+2) /* error in xdr routines */
00027 #define DTN_ECOMM       (DTN_ERRBASE+3) /* error in ipc communication */
00028 #define DTN_ECONNECT    (DTN_ERRBASE+4) /* error connecting to server */
00029 #define DTN_ETIMEOUT    (DTN_ERRBASE+5) /* operation timed out */
00030 #define DTN_ESIZE       (DTN_ERRBASE+6) /* payload / eid too large */
00031 #define DTN_ENOTFOUND   (DTN_ERRBASE+7) /* not found (e.g. reg) */
00032 #define DTN_EINTERNAL   (DTN_ERRBASE+8) /* misc. internal error */
00033 #define DTN_EINPOLL     (DTN_ERRBASE+9) /* illegal op. called after dtn_poll */
00034 #define DTN_EBUSY       (DTN_ERRBASE+10) /* registration already in use */
00035 #define DTN_EVERSION    (DTN_ERRBASE+11) /* ipc version mismatch */
00036 #define DTN_EMSGTYPE    (DTN_ERRBASE+12) /* unknown message type */
00037 #define DTN_ENOSPACE    (DTN_ERRBASE+13) /* no storage space */
00038 #define DTN_ERRMAX 255
00039 
00040 #endif /* DTN_ERRNO_H */

Generated on Thu Jun 7 16:56:49 2007 for DTN Reference Implementation by  doxygen 1.5.1