|
enum | db_status { DB_OK,
DB_ERR_OPEN,
DB_ERR_EXEC_SQL
} |
|
enum | http_status_t {
HTTP_OK,
HTTP_ERR_DNS,
HTTP_ERR_CONN,
HTTP_ERR_REQ,
HTTP_ERR_READ,
HTTP_ERR_SEND,
HTTP_ERR_TIMO,
HTTP_ERR_READ_HDR,
HTTP_ERR_READ_BODY,
HTTP_ERR_INVALID_HDR,
HTTP_ERR_UNKNOWN,
HTTP_ERR_REDIRECT_MAX
} |
|
enum | http_method_t {
HTTP_METHOD_UNKNOWN,
HTTP_METHOD_GET,
HTTP_METHOD_POST,
HTTP_METHOD_PUT,
HTTP_METHOD_CONNECT,
HTTP_METHOD_PURGE,
HTTP_METHOD_DELETE,
HTTP_METHOD_HEAD,
HTTP_METHOD_OPTION,
HTTP_METHOD_PROPFIND,
HTTP_METHOD_PATCH,
HTTP_METHOD_OTHER
} |
|
enum | http_request_t {
HTTP_REQUEST_NORMAL,
HTTP_REQUEST_MULTIPART_FORM,
HTTP_REQUEST_OCTET_STREAM,
HTTP_REQUEST_TEXT_XML,
HTTP_REQUEST_TEXT_JSON,
HTTP_REQUEST_OTHER
} |
|
enum | http_request_error_t { HTTP_REQ_OK,
HTTP_REQ_ERR_IO,
HTTP_REQ_ERR_METHOD
} |
|
enum | http_mime_t { HTTP_MIME_PARAM,
HTTP_MIME_FILE
} |
|
enum | {
FRAME_CONTINUATION = 0x00,
FRAME_TEXT = 0x01,
FRAME_BINARY = 0x02,
FRAME_RSV3 = 0x03,
FRAME_RSV4 = 0x04,
FRAME_RSV5 = 0x05,
FRAME_RSV6 = 0x06,
FRAME_RSV7 = 0x07,
FRAME_CLOSE = 0x08,
FRAME_PING = 0x09,
FRAME_PONG = 0x0A,
FRAME_CTL_RSVB = 0x0B,
FRAME_CTL_RSVC = 0x0C,
FRAME_CTL_RSVD = 0x0D,
FRAME_CTL_RSVE = 0x0E,
FRAME_CTL_RSVF = 0x0F
} |
|
enum | io_status { IO_WAIT_HDR,
IO_WAIT_DAT
} |
|
enum | tzone_t { tzone_gmt,
tzone_cst
} |
|
enum | {
MQTT_CONNACK_OK = 0x00,
MQTT_CONNACK_ERR_VER = 0x01,
MQTT_CONNACK_ERR_CID = 0x02,
MQTT_CONNACK_ERR_SVR = 0x03,
MQTT_CONNACK_ERR_AUTH = 0x04,
MQTT_CONNACK_ERR_DENY = 0x05
} |
|
enum | mqtt_conn_status_t {
CONNECT_ACCEPTED = 0x00,
CONNECT_INVALID_VERSION = 0x01,
CONNECT_INVALID_CID = 0x02,
CONNECT_NOT_AVAIL = 0x03,
CONNECT_LOGIN_FAILED = 0x04,
CONNECT_NO_AUTHORITY = 0x05
} |
|
enum | mqtt_type_t {
MQTT_RESERVED_MIN = 0,
MQTT_CONNECT = 1,
MQTT_CONNACK = 2,
MQTT_PUBLISH = 3,
MQTT_PUBACK = 4,
MQTT_PUBREC = 5,
MQTT_PUBREL = 6,
MQTT_PUBCOMP = 7,
MQTT_SUBSCRIBE = 8,
MQTT_SUBACK = 9,
MQTT_UNSUBSCRIBE = 10,
MQTT_UNSUBACK = 11,
MQTT_PINGREQ = 12,
MQTT_PINGRESP = 13,
MQTT_DISCONNECT = 14,
MQTT_RESERVED_MAX = 15
} |
|
enum | mqtt_option_t { MQTT_NONE,
MQTT_NEED,
MQTT_MAYBE
} |
|
enum | mqtt_qos_t { MQTT_QOS0 = 0x0,
MQTT_QOS1 = 0x1,
MQTT_QOS2 = 0x2
} |
|
enum | rfc1035_type_t {
rfc1035_type_null,
rfc1035_type_a,
rfc1035_type_aaaa,
rfc1035_type_mx,
rfc1035_type_txt,
rfc1035_type_ptr
} |
|
enum | redis_pipeline_type_t { redis_pipeline_t_cmd,
redis_pipeline_t_redirect,
redis_pipeline_t_clusterdonw,
redis_pipeline_t_stop
} |
|
enum | { GEO_UNIT_FT,
GEO_UNIT_M,
GEO_UNIT_MI,
GEO_UNIT_KM
} |
|
enum | { GEO_WITH_COORD = 1 << 0,
GEO_WITH_DIST = 1 << 1,
GEO_WITH_HASH = 1 << 2
} |
|
enum | { GEO_SORT_NONE,
GEO_SORT_ASC,
GEO_SORT_DESC
} |
|
enum | redis_key_t {
REDIS_KEY_NONE,
REDIS_KEY_STRING,
REDIS_KEY_HASH,
REDIS_KEY_LIST,
REDIS_KEY_SET,
REDIS_KEY_ZSET
} |
|
enum | redis_result_t {
REDIS_RESULT_UNKOWN,
REDIS_RESULT_NIL,
REDIS_RESULT_ERROR,
REDIS_RESULT_STATUS,
REDIS_RESULT_INTEGER,
REDIS_RESULT_STRING,
REDIS_RESULT_ARRAY
} |
|
enum | todo_t { TODO_NUL,
TODO_SET,
TODO_DEL
} |
|
enum | zlib_level_t {
zlib_default = -1,
zlib_level0 = 0,
zlib_best_speed = 1,
zlib_level1 = zlib_best_speed,
zlib_level2 = 2,
zlib_level3 = 3,
zlib_level4 = 4,
zlib_level5 = 5,
zlib_level6 = 6,
zlib_level7 = 7,
zlib_level8 = 8,
zlib_best_compress = 9,
zlib_level9 = zlib_best_compress
} |
|
enum | {
zlib_wbits_8 = 8,
zlib_wbits_9 = 9,
zlib_wbits_10 = 10,
zlib_wbits_11 = 11,
zlib_wbits_12 = 12,
zlib_wbits_13 = 13,
zlib_wbits_14 = 14,
zlib_wbits_15 = 15
} |
|
enum | zlib_mlevel_t {
zlib_mlevel_1 = 1,
zlib_mlevel_2 = 2,
zlib_mlevel_3 = 3,
zlib_mlevel_4 = 4,
zlib_mlevel_5 = 5,
zlib_mlevel_6 = 6,
zlib_mlevel_7 = 7,
zlib_mlevel_8 = 8,
zlib_mlevel_9 = 9
} |
|
enum | zlib_flush_t {
zlib_flush_off = 0,
zlib_flush_partial = 1,
zlib_flush_sync = 2,
zlib_flush_full = 3,
zlib_flush_finish = 4
} |
|
enum | aio_handle_type { ENGINE_SELECT,
ENGINE_POLL,
ENGINE_KERNEL,
ENGINE_WINMSG
} |
|
enum | mbedtls_verify_t { MBEDTLS_VERIFY_NONE,
MBEDTLS_VERIFY_OPT,
MBEDTLS_VERIFY_REQ
} |
|
enum | polarssl_verify_t { POLARSSL_VERIFY_NONE,
POLARSSL_VERIFY_OPT,
POLARSSL_VERIFY_REQ
} |
|
enum | { OPEN_FLAG_NONE = 0,
OPEN_FLAG_NONBLOCK = 1,
OPEN_FLAG_REUSEPORT = 1 << 1,
OPEN_FLAG_EXCLUSIVE = 1 << 2
} |
|
enum | time_unit_t { time_unit_s,
time_unit_ms,
time_unit_us,
time_unit_ns
} |
|
enum | {
http_handler_get = 0,
http_handler_post,
http_handler_head,
http_handler_put,
http_handler_patch,
http_handler_connect,
http_handler_purge,
http_handler_delete,
http_handler_options,
http_handler_profind,
http_handler_websocket,
http_handler_error,
http_handler_unknown,
http_handler_max
} |
|
enum | fiber_event_t { FIBER_EVENT_T_KERNEL,
FIBER_EVENT_T_POLL,
FIBER_EVENT_T_SELECT,
FIBER_EVENT_T_WMSG
} |
|
|
ACL_CPP_API void | acl_cpp_init (void) |
|
ACL_CPP_API const char * | acl_cpp_verbose (void) |
|
ACL_CPP_API void | test_logger (void) |
|
ACL_CPP_API void | test_snprintf (void) |
|
const char * | mqtt_type_desc (mqtt_type_t type) |
|
const char * | mqtt_qos_desc (mqtt_qos_t qos) |
|
template<typename T > |
bool | deserialize (json &j, T &o, string *err=NULL) |
|
template<typename T > |
void | serialize (T &o, string &buf) |
|
void * | atomic_new (void) |
|
void | atomic_free (void *) |
|
void | atomic_set (void *, void *) |
|
void * | atomic_cas (void *, void *, void *) |
|
void * | atomic_xchg (void *, void *) |
|
ACL_CPP_API void | escape (const char *in, size_t len, string &out) |
|
ACL_CPP_API bool | unescape (const char *in, size_t len, string &out) |
|
ACL_CPP_API void | acl_slice_init (void) |
|
ACL_CPP_API void * | acl_new (size_t size, const char *filename, const char *funcname, int lineno) |
|
ACL_CPP_API void | acl_delete (void *ptr, const char *filename, const char *funcname, int lineno) |
|
void * | mbox_create (bool mpsc) |
|
void | mbox_free (void *, void(*free_fn)(void *)) |
|
bool | mbox_send (void *, void *) |
|
void * | mbox_read (void *, int, bool *) |
|
size_t | mbox_nsend (void *) |
|
size_t | mbox_nread (void *) |
|
ACL_CPP_API int | safe_snprintf (char *buf, size_t size, const char *fmt,...) |
|
ACL_CPP_API int | safe_vsnprintf (char *buf, size_t size, const char *fmt, va_list ap) |
|
template<typename T > |
string | operator+ (T v, const string &rhs) |
|
ACL_CPP_API int | last_error (void) |
|
ACL_CPP_API void | set_error (int errnum) |
|
ACL_CPP_API const char * | last_serror (void) |
|
ACL_CPP_API const char * | last_serror (char *buf, size_t size) |
|
ACL_CPP_API const char * | string_error (int errnum, char *buf, size_t size) |
|
ACL_CPP_API int | strncasecmp_ (const char *s1, const char *s2, size_t n) |
|
ACL_CPP_API void | assert_ (bool n) |
|
ACL_CPP_API void | meter_time (const char *filename, int line, const char *info) |
|
ACL_CPP_API long long | get_curr_stamp (void) |
|
ACL_CPP_API double | stamp_sub (const struct timeval &from, const struct timeval &sub) |
|
ACL_CHANNEL * | channel_create (int elemsize, int bufsize) |
|
void | channel_free (ACL_CHANNEL *c) |
|
int | channel_send (ACL_CHANNEL *c, void *v) |
|
int | channel_recv (ACL_CHANNEL *c, void *v) |
|
Copyright (C) 2015-2018 All rights reserved.
AUTHOR(S) niuke.nosp@m.y@qq.nosp@m..com shuxi.nosp@m.n.zh.nosp@m.eng@q.nosp@m.q.co.nosp@m.m
VERSION Sun 18 Sep 2016 05:15:52 PM CST
Copyright (C) 2015-2018 All rights reserved.
AUTHOR(S) E-mail: "fuwangqini" niuke.nosp@m.y@qq.nosp@m..com 2017.5.13 fixed one bug by "lindawei" 67249.nosp@m.6008.nosp@m.@qq.c.nosp@m.om
VERSION Sat 08 Oct 2016 09:07:14 PM CST
Copyright (C) 2015-2018 All rights reserved.
AUTHOR(S) E-mail: niuke.nosp@m.y@qq.nosp@m..com
VERSION Sat 08 Oct 2016 09:07:14 PM CST
对 ACL 库中 json 解析库的封装,方便 C++ 用户使用,如果不太注重性能因素, 可以直接使用该类,如果在服务端执行且非常注重性能,建议直接使用 ACL 库的 json 解析器,因为该类也是调用了 ACL 库中的 json 解析过程,并且有二次拷贝 过程,可能会稍微影响一些性能,但对于一般的应用这点影响是微不足道的
对 ACL 库中 XML 解析库的封装,方便 C++ 用户使用,如果不太注重性能因素, 可以直接使用该类,如果在服务端执行且非常注重性能,建议直接使用 ACL 库的 XML 解析器,因为该类也是调用了 ACL 库中的 XML 解析过程,并且有二次拷贝 过程,可能会稍微影响一些性能,但对于一般的应用这点影响是微不足道的