acl/lib_acl_cpp/include/acl_cpp/hsocket/hserror.hpp

25 lines
557 B
C++
Raw Normal View History

2014-11-19 00:25:21 +08:00
#pragma once
#include "acl_cpp/acl_cpp_define.hpp"
#define HS_ERR_INVALID_REPLY -7 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݴ<EFBFBD><DDB4><EFBFBD>
#define HS_ERR_EMPTY -6 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA>
#define HS_ERR_PARAMS -5 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
#define HS_ERR_NOT_OPEN -4 // <20><>δ<EFBFBD><CEB4><EFBFBD><EFBFBD>
#define HS_ERR_READ -3 // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
#define HS_ERR_WRITE -2 // д<><D0B4><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
#define HS_ERR_CONN -1 // <20><><EFBFBD><EFBFBD>ʧ<EFBFBD><CAA7>
#define HS_ERR_OK 0 // <20><>ȷ
namespace acl {
class ACL_CPP_API hserror
{
public:
hserror();
~hserror();
static const char* get_serror(int errnum);
};
} // namespace acl