forked from lthn/blockchain
put levin return code to right place
This commit is contained in:
parent
d93624bbf4
commit
d40311da17
1 changed files with 19 additions and 15 deletions
|
|
@ -33,6 +33,25 @@
|
|||
|
||||
#define LEVIN_SIGNATURE 0x0101010101012101LL //Bender's nightmare
|
||||
|
||||
|
||||
|
||||
#define LEVIN_OK 0
|
||||
#define LEVIN_ERROR_CONNECTION -1
|
||||
#define LEVIN_ERROR_CONNECTION_NOT_FOUND -2
|
||||
#define LEVIN_ERROR_CONNECTION_DESTROYED -3
|
||||
#define LEVIN_ERROR_CONNECTION_TIMEDOUT -4
|
||||
#define LEVIN_ERROR_CONNECTION_NO_DUPLEX_PROTOCOL -5
|
||||
#define LEVIN_ERROR_CONNECTION_HANDLER_NOT_DEFINED -6
|
||||
#define LEVIN_ERROR_FORMAT -7
|
||||
#define LEVIN_ERROR_EXCEPTION -8
|
||||
#define LEVIN_ERROR_UNKNOWN_ERROR -9
|
||||
#define LEVIN_ERROR_INTERNAL -10
|
||||
#define LEVIN_ERROR_PROTOCOL_INCONSISTENT -11
|
||||
#define LEVIN_ERROR_NET_ERROR -12
|
||||
#define LEVIN_ERROR_SIGNATURE_MISMATCH -13
|
||||
|
||||
|
||||
|
||||
namespace epee
|
||||
{
|
||||
namespace levin
|
||||
|
|
@ -96,21 +115,6 @@ namespace levin
|
|||
};
|
||||
|
||||
|
||||
#define LEVIN_OK 0
|
||||
#define LEVIN_ERROR_CONNECTION -1
|
||||
#define LEVIN_ERROR_CONNECTION_NOT_FOUND -2
|
||||
#define LEVIN_ERROR_CONNECTION_DESTROYED -3
|
||||
#define LEVIN_ERROR_CONNECTION_TIMEDOUT -4
|
||||
#define LEVIN_ERROR_CONNECTION_NO_DUPLEX_PROTOCOL -5
|
||||
#define LEVIN_ERROR_CONNECTION_HANDLER_NOT_DEFINED -6
|
||||
#define LEVIN_ERROR_FORMAT -7
|
||||
#define LEVIN_ERROR_EXCEPTION -8
|
||||
#define LEVIN_ERROR_UNKNOWN_ERROR -9
|
||||
#define LEVIN_ERROR_INTERNAL -10
|
||||
#define LEVIN_ERROR_PROTOCOL_INCONSISTENT -11
|
||||
#define LEVIN_ERROR_NET_ERROR -12
|
||||
#define LEVIN_ERROR_SIGNATURE_MISMATCH -13
|
||||
|
||||
#define DESCRIBE_RET_CODE(code) case code: return #code;
|
||||
inline
|
||||
const char* get_err_descr(int err)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue