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

29 lines
608 B
C++
Raw Normal View History

2014-11-19 00:25:21 +08:00
#pragma once
2017-06-02 14:47:24 +08:00
#include "../acl_cpp_define.hpp"
2014-11-19 00:25:21 +08:00
#ifndef ACL_CLIENT_ONLY
2014-11-19 00:25:21 +08:00
#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
#endif // ACL_CLIENT_ONLY