00001 /* 00002 * Copyright (C) 2006, Jose Renato Santos. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 */ 00017 00018 /////////////////////////////////////////////////////////////////////////////// 00019 // vsierror.h : Error codes for VSI library (Virtual System Interface) 00020 /////////////////////////////////////////////////////////////////////////////// 00021 00022 #ifndef __VSIERROR_H_ 00023 #define __VSIERROR_H_ 00024 00025 // socket errors : -0x01XX 00026 00027 const int VSI_ERROR_INVALID_PARAMETER = -0x0101; 00028 00029 const int VSI_ERROR_SOCKET_NOT_OPEN = -0x0121; 00030 const int VSI_ERROR_SOCKET_CREATION = -0x0122; 00031 const int VSI_ERROR_SOCKET_BIND = -0x0123; 00032 const int VSI_ERROR_SOCKET_LISTEN = -0x0124; 00033 const int VSI_ERROR_SOCKET_ACCEPT = -0x0125; 00034 const int VSI_ERROR_SOCKET_CONNECT = -0x0126; 00035 const int VSI_ERROR_SOCKET_INUSE = -0x0127; 00036 const int VSI_ERROR_SOCKET_SEND = -0x0128; 00037 const int VSI_ERROR_SOCKET_SEND_INCOMPLETE = -0x0129; 00038 const int VSI_ERROR_SOCKET_RECV = -0x012A; 00039 00040 const int VSI_ERROR_THREAD_ACTIVE = -0x0141; 00041 const int VSI_ERROR_THREAD_INACTIVE = -0x0142; 00042 const int VSI_ERROR_THREAD_CREATE = -0x0143; 00043 const int VSI_ERROR_THREAD_JOIN = -0x0144; 00044 const int VSI_ERROR_THREAD_KILL = -0x0145; 00045 const int VSI_ERROR_THREAD_SETSCOPE = -0x0146; 00046 00047 const int VSI_ERROR_DEVICE_NOT_EXIST = -0x0161; 00048 const int VSI_ERROR_DEVICE_SEEK = -0x0162; 00049 const int VSI_ERROR_DEVICE_GETSIZE = -0x0163; 00050 const int VSI_ERROR_DEVICE_READ = -0x0164; 00051 const int VSI_ERROR_DEVICE_WRITE = -0x0165; 00052 const int VSI_ERROR_DEVICE_POSITION = -0x0166; 00053 00054 #endif // __VSIERROR_H_ 00055