Wiselib
|
00001 /*************************************************************************** 00002 ** This file is part of the generic algorithm library Wiselib. ** 00003 ** Copyright (C) 2008,2009 by the Wisebed (www.wisebed.eu) project. ** 00004 ** ** 00005 ** The Wiselib is free software: you can redistribute it and/or modify ** 00006 ** it under the terms of the GNU Lesser General Public License as ** 00007 ** published by the Free Software Foundation, either version 3 of the ** 00008 ** License, or (at your option) any later version. ** 00009 ** ** 00010 ** The Wiselib is distributed in the hope that it will be useful, ** 00011 ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** 00012 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** 00013 ** GNU Lesser General Public License for more details. ** 00014 ** ** 00015 ** You should have received a copy of the GNU Lesser General Public ** 00016 ** License along with the Wiselib. ** 00017 ** If not, see <http://www.gnu.org/licenses/>. ** 00018 ***************************************************************************/ 00019 #ifndef __CONNECTOR_DEFAULT_RETURN_VALUES_H__ 00020 #define __CONNECTOR_DEFAULT_RETURN_VALUES_H__ 00021 00022 namespace wiselib 00023 { 00024 00032 template<typename OsModel_P> 00033 class DefaultReturnValues 00034 { 00035 public: 00036 typedef OsModel_P OsModel; 00037 // -------------------------------------------------------------------- 00038 enum ErrorCodes 00039 { 00040 SUCCESS = 0, 00041 ERR_UNSPEC = -1, 00042 ERR_NOMEM = 12, 00043 ERR_BUSY = 16, 00044 ERR_NOTIMPL = 38, 00045 ERR_NETDOWN = 100, 00046 ERR_HOSTUNREACH = 113 00047 //EINVAL = 22, /// Invalid argument 00048 //EFBIG = 27, /// File too large - not only files, but also passed buffers 00049 //EDOM = 33, /// Math argument out of domain of func 00050 //ERANGE = 34, /// Math result not representable 00051 //ENODATA = 61, /// No data available 00052 //EPROTO = 71, /// Protocol error 00053 //EOVERFLOW = 75, /// Value too large for defined data type 00054 //EMSGSIZE = 90, /// Message too long 00055 //ENOBUFS = 105, /// No buffer space available 00056 //ETIMEDOUT = 110, /// Connection timed out 00057 //ECONNREFUSED = 111, /// Connection refused 00058 }; 00059 // -------------------------------------------------------------------- 00060 enum StateValues 00061 { 00062 READY = 0, 00063 NO_VALUE = 1, 00064 INACTIVE = 2 00065 }; 00066 }; 00067 } 00068 00069 #endif