Files
rest_rpc/const_vars.h
T
qicosmos cb3ea4aab1 update
2019-03-10 11:28:59 +08:00

23 lines
344 B
C++

#pragma once
#include <cstdint>
namespace rest_rpc {
enum class result_code : std::int16_t {
OK = 0,
FAIL = 1,
};
enum class error_code {
OK,
UNKNOWN,
FAIL,
TIMEOUT,
CANCEL,
BADCONNECTION,
};
static const size_t MAX_BUF_LEN = 1048576 * 10;
static const size_t HEAD_LEN = 4;
static const size_t PAGE_SIZE = 2 * 1024;
}