Electroneum
levin_base.h File Reference
#include "net_utils_base.h"
Include dependency graph for levin_base.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  epee::levin::bucket_head
 
struct  epee::levin::bucket_head2
 
struct  epee::levin::levin_commands_handler< t_connection_context >
 

Namespaces

 epee
 
 epee::levin
 

Macros

#define LEVIN_SIGNATURE   0x0101010101012101LL
 
#define LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED   0
 
#define LEVIN_DEFAULT_MAX_PACKET_SIZE   100000000
 
#define LEVIN_PACKET_REQUEST   0x00000001
 
#define LEVIN_PACKET_RESPONSE   0x00000002
 
#define LEVIN_PROTOCOL_VER_0   0
 
#define LEVIN_PROTOCOL_VER_1   1
 
#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 DESCRIBE_RET_CODE(code)   case code: return #code;
 

Functions

const char * epee::levin::get_err_descr (int err)
 

Macro Definition Documentation

◆ DESCRIBE_RET_CODE

#define DESCRIBE_RET_CODE (   code)    case code: return #code;

Definition at line 102 of file levin_base.h.

◆ LEVIN_DEFAULT_MAX_PACKET_SIZE

#define LEVIN_DEFAULT_MAX_PACKET_SIZE   100000000

Definition at line 71 of file levin_base.h.

◆ LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED

#define LEVIN_DEFAULT_TIMEOUT_PRECONFIGURED   0

Definition at line 70 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION

#define LEVIN_ERROR_CONNECTION   -1

Definition at line 94 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION_DESTROYED

#define LEVIN_ERROR_CONNECTION_DESTROYED   -3

Definition at line 96 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION_HANDLER_NOT_DEFINED

#define LEVIN_ERROR_CONNECTION_HANDLER_NOT_DEFINED   -6

Definition at line 99 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION_NO_DUPLEX_PROTOCOL

#define LEVIN_ERROR_CONNECTION_NO_DUPLEX_PROTOCOL   -5

Definition at line 98 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION_NOT_FOUND

#define LEVIN_ERROR_CONNECTION_NOT_FOUND   -2

Definition at line 95 of file levin_base.h.

◆ LEVIN_ERROR_CONNECTION_TIMEDOUT

#define LEVIN_ERROR_CONNECTION_TIMEDOUT   -4

Definition at line 97 of file levin_base.h.

◆ LEVIN_ERROR_FORMAT

#define LEVIN_ERROR_FORMAT   -7

Definition at line 100 of file levin_base.h.

◆ LEVIN_OK

#define LEVIN_OK   0

Definition at line 93 of file levin_base.h.

◆ LEVIN_PACKET_REQUEST

#define LEVIN_PACKET_REQUEST   0x00000001

Definition at line 73 of file levin_base.h.

◆ LEVIN_PACKET_RESPONSE

#define LEVIN_PACKET_RESPONSE   0x00000002

Definition at line 74 of file levin_base.h.

◆ LEVIN_PROTOCOL_VER_0

#define LEVIN_PROTOCOL_VER_0   0

Definition at line 77 of file levin_base.h.

◆ LEVIN_PROTOCOL_VER_1

#define LEVIN_PROTOCOL_VER_1   1

Definition at line 78 of file levin_base.h.

◆ LEVIN_SIGNATURE

#define LEVIN_SIGNATURE   0x0101010101012101LL

Definition at line 34 of file levin_base.h.