CUBRID Engine
latest
|
Go to the source code of this file.
Typedefs | |
typedef enum t_cas_func_code | T_CAS_FUNC_CODE |
typedef enum t_cas_protocol | T_CAS_PROTOCOL |
typedef enum t_broker_info_pos | T_BROKER_INFO_POS |
typedef enum t_driver_info_pos | T_DRIVER_INFO_POS |
typedef enum t_dbms_type | T_DBMS_TYPE |
typedef int | T_BROKER_VERSION |
Functions | |
const char * | cas_bi_get_broker_info (void) |
char | cas_bi_get_dbms_type (void) |
void | cas_bi_set_dbms_type (const char dbms_type) |
void | cas_bi_set_keep_connection (const char keep_connection) |
char | cas_bi_get_keep_connection (void) |
void | cas_bi_set_statement_pooling (const char statement_pooling) |
char | cas_bi_get_statement_pooling (void) |
void | cas_bi_set_cci_pconnect (const char cci_pconnect) |
char | cas_bi_get_cci_pconnect (void) |
void | cas_bi_set_protocol_version (const char protocol_version) |
char | cas_bi_get_protocol_version (void) |
void | cas_bi_set_renewed_error_code (const bool renewed_error_code) |
bool | cas_bi_get_renewed_error_code (void) |
bool | cas_di_understand_renewed_error_code (const char *driver_info) |
void | cas_bi_make_broker_info (char *broker_info, char dbms_type, char statement_pooling, char cci_pconnect) |
#define BROKER_INFO_MAJOR_VERSION (BROKER_INFO_PROTO_VERSION) |
Definition at line 123 of file cas_protocol.h.
#define BROKER_INFO_MINOR_VERSION (BROKER_INFO_FUNCTION_FLAG) |
Definition at line 124 of file cas_protocol.h.
#define BROKER_INFO_PATCH_VERSION (BROKER_INFO_RESERVED2) |
Definition at line 125 of file cas_protocol.h.
#define BROKER_INFO_RESERVED (BROKER_INFO_RESERVED3) |
Definition at line 126 of file cas_protocol.h.
#define BROKER_INFO_SIZE 8 |
Definition at line 116 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define BROKER_RECONNECT_WHEN_SERVER_DOWN 0x20 |
Definition at line 120 of file cas_protocol.h.
#define BROKER_RENEWED_ERROR_CODE 0x80 |
Definition at line 117 of file cas_protocol.h.
Referenced by cas_bi_is_enabled_function(), cas_bi_make_broker_info(), cas_bi_set_function_disable(), cas_bi_set_function_enable(), cas_di_understand_renewed_error_code(), cas_main(), proxy_get_driver_info_by_ctx(), proxy_get_driver_info_by_fd(), and proxy_socket_io_new_client().
#define BROKER_SUPPORT_HOLDABLE_RESULT 0x40 |
Definition at line 118 of file cas_protocol.h.
Referenced by cas_bi_is_enabled_function(), cas_bi_make_broker_info(), cas_bi_set_function_disable(), cas_bi_set_function_enable(), cas_main(), proxy_get_driver_info_by_ctx(), proxy_get_driver_info_by_fd(), and proxy_socket_io_new_client().
#define CAS_CONNECTION_REPLY_SIZE CAS_CONNECTION_REPLY_SIZE_V4 |
Definition at line 134 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define CAS_CONNECTION_REPLY_SIZE_PRIOR_PROTOCOL_V3 (CAS_PID_SIZE + BROKER_INFO_SIZE + SESSION_ID_SIZE) |
Definition at line 131 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define CAS_CONNECTION_REPLY_SIZE_V3 (CAS_PID_SIZE + BROKER_INFO_SIZE + DRIVER_SESSION_SIZE) |
Definition at line 132 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define CAS_CONNECTION_REPLY_SIZE_V4 (CAS_PID_SIZE + CAS_PID_SIZE + BROKER_INFO_SIZE + DRIVER_SESSION_SIZE) |
Definition at line 133 of file cas_protocol.h.
#define CAS_CONV_ERROR_TO_NEW | ( | V | ) | (V - 9000) |
Definition at line 302 of file cas_protocol.h.
Referenced by proxy_convert_error_code().
#define CAS_CONV_ERROR_TO_OLD | ( | V | ) | (V + 9000) |
Definition at line 301 of file cas_protocol.h.
Referenced by net_buf_error_msg_set(), net_write_error(), proxy_convert_error_code(), receiver_thr_f(), and send_error_to_driver().
#define CAS_GET_QUERY_INFO_PLAN 1 |
Definition at line 138 of file cas_protocol.h.
Referenced by ux_get_query_info().
#define CAS_INFO_FLAG_MASK_AUTOCOMMIT 0x01 |
Definition at line 105 of file cas_protocol.h.
Referenced by process_request(), and proxy_init_net_buf().
#define CAS_INFO_FLAG_MASK_FORCE_OUT_TRAN 0x02 |
Definition at line 106 of file cas_protocol.h.
Referenced by process_request(), proxy_set_force_out_tran(), and proxy_unset_force_out_tran().
#define CAS_INFO_FLAG_MASK_NEW_SESSION_ID 0x04 |
Definition at line 107 of file cas_protocol.h.
Referenced by init_msg_header(), and proxy_init_net_buf().
#define CAS_INFO_RESERVED_DEFAULT (-1) |
Definition at line 110 of file cas_protocol.h.
Referenced by cas_main(), init_msg_header(), process_request(), and shard_cas_main().
#define CAS_INFO_SIZE (4) |
Definition at line 109 of file cas_protocol.h.
Referenced by cas_main(), proxy_init_net_buf(), proxy_io_make_client_dbinfo_ok(), and set_cas_info_size().
#define CAS_KEEP_CONNECTION_ON 1 |
Definition at line 136 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info().
#define CAS_MAKE_PROTO_VER | ( | DRIVER_INFO | ) |
Definition at line 307 of file cas_protocol.h.
Referenced by fn_proxy_cas_check_cas(), fn_proxy_cas_prepare(), fn_proxy_cas_prepare_and_execute(), fn_proxy_cas_schema_info(), fn_proxy_client_execute(), fn_proxy_client_execute_array(), fn_proxy_client_prepare(), fn_proxy_client_prepare_and_execute(), fn_proxy_client_schema_info(), get_dbinfo_length(), proxy_cas_execute_internal(), proxy_handler_process_client_request(), proxy_handler_process_client_wakeup_by_shard(), proxy_io_make_check_cas(), proxy_io_make_client_dbinfo_ok(), proxy_io_make_client_proxy_alive(), proxy_io_make_close_req_handle_ok(), proxy_io_make_end_tran_request(), proxy_io_make_error_msg(), proxy_io_make_ex_get_int(), proxy_io_make_get_db_version(), proxy_io_make_shard_info(), proxy_process_client_register(), send_error_to_driver(), shard_shm_set_as_client_info(), and shard_shm_set_as_client_info_with_db_param().
#define CAS_MAKE_VER | ( | MAJOR, | |
MINOR, | |||
PATCH | |||
) | ((T_BROKER_VERSION) (((MAJOR) << 16) | ((MINOR) << 8) | (PATCH))) |
Definition at line 304 of file cas_protocol.h.
Referenced by cas_main(), fn_end_tran(), get_dbinfo_length(), net_buf_error_msg_set(), net_write_error(), prepare_column_info_set(), proxy_convert_error_code(), proxy_get_cas_error_code(), proxy_io_make_error_msg(), proxy_is_invalid_statement(), proxy_process_client_register(), receiver_thr_f(), set_cas_info_size(), set_column_info(), and shard_stmt_make_protocol_version().
#define CAS_PID_SIZE 4 |
Definition at line 128 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define CAS_PROTO_CURRENT_VER ((T_BROKER_VERSION) CAS_PROTO_MAKE_VER(CURRENT_PROTOCOL)) |
Definition at line 286 of file cas_protocol.h.
Referenced by cas_main(), process_request(), shard_cas_main(), shard_stmt_make_protocol_version(), and ux_get_generated_keys_client_insert().
#define CAS_PROTO_INDICATOR (0x40) |
Definition at line 281 of file cas_protocol.h.
Referenced by cas_di_understand_renewed_error_code(), proxy_get_driver_info_by_ctx(), proxy_get_driver_info_by_fd(), and receiver_thr_f().
#define CAS_PROTO_MAKE_VER | ( | VER | ) | ((T_BROKER_VERSION) (CAS_PROTO_INDICATOR << 24 | (VER))) |
Definition at line 284 of file cas_protocol.h.
Referenced by cas_log_query_cancel(), fn_execute_internal(), fn_proxy_client_execute(), fn_proxy_client_execute_array(), fn_proxy_client_prepare_and_execute(), send_error_to_driver(), and shard_stmt_make_protocol_version().
#define CAS_PROTO_PACK_CURRENT_NET_VER CAS_PROTO_PACK_NET_VER(CURRENT_PROTOCOL) |
Definition at line 298 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info().
#define CAS_PROTO_PACK_NET_VER | ( | VER | ) | (char)((char)CAS_PROTO_INDICATOR | (char)(VER)) |
Definition at line 294 of file cas_protocol.h.
#define CAS_PROTO_TO_VER_STR | ( | MSG_P, | |
VER | |||
) |
Definition at line 320 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define CAS_PROTO_UNPACK_NET_VER | ( | VER | ) | (CAS_PROTO_MAKE_VER(CAS_PROTO_VER_MASK & (char)(VER))) |
Definition at line 296 of file cas_protocol.h.
Referenced by proxy_socket_io_new_client(), and receiver_thr_f().
#define CAS_PROTO_VER_MASK (0x3F) |
Definition at line 293 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define CAS_PROTOCOL_VERSION ((unsigned char)(CURRENT_PROTOCOL)) |
Definition at line 278 of file cas_protocol.h.
#define CAS_REQ_HEADER_CCI "CCI" |
Definition at line 150 of file cas_protocol.h.
#define CAS_REQ_HEADER_JDBC "JDBC" |
Definition at line 146 of file cas_protocol.h.
#define CAS_REQ_HEADER_ODBC "ODBC" |
Definition at line 147 of file cas_protocol.h.
#define CAS_REQ_HEADER_OLEDB "OLEDB" |
Definition at line 149 of file cas_protocol.h.
#define CAS_REQ_HEADER_PHP "PHP" |
Definition at line 148 of file cas_protocol.h.
#define CAS_STATEMENT_POOLING_OFF 0 |
Definition at line 140 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info(), and cas_bi_set_statement_pooling().
#define CAS_STATEMENT_POOLING_ON 1 |
Definition at line 141 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info(), and cas_bi_set_statement_pooling().
#define CAS_TYPE_FIRST_BYTE_PROTOCOL_MASK 0x80 |
Definition at line 314 of file cas_protocol.h.
Referenced by encode_ext_type_to_short(), and net_buf_cp_cas_type_and_charset().
#define CAS_VER_TO_MAJOR | ( | VER | ) | ((int) (((VER) >> 16) & 0xFF)) |
Definition at line 317 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define CAS_VER_TO_MINOR | ( | VER | ) | ((int) (((VER) >> 8) & 0xFF)) |
Definition at line 318 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define CAS_VER_TO_PATCH | ( | VER | ) | ((int) ((VER) & 0xFF)) |
Definition at line 319 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define CCI_PCONNECT_OFF 0 |
Definition at line 143 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info(), and cas_bi_set_cci_pconnect().
#define CCI_PCONNECT_ON 1 |
Definition at line 144 of file cas_protocol.h.
Referenced by cas_bi_make_broker_info(), and cas_bi_set_cci_pconnect().
#define DOES_CLIENT_MATCH_THE_PROTOCOL | ( | CLIENT, | |
MATCH | |||
) | ((CLIENT) == CAS_PROTO_MAKE_VER((MATCH))) |
Definition at line 289 of file cas_protocol.h.
Referenced by fn_execute_internal(), net_buf_error_msg_set(), net_write_error(), process_request(), proxy_convert_error_code(), and proxy_handler_process_client_request().
#define DOES_CLIENT_UNDERSTAND_THE_PROTOCOL | ( | CLIENT, | |
REQUIRE | |||
) | ((CLIENT) >= CAS_PROTO_MAKE_VER((REQUIRE))) |
Definition at line 290 of file cas_protocol.h.
Referenced by cas_main(), cas_send_connect_reply_to_driver(), cas_set_session_id(), dbval_to_net_buf(), encode_ext_type_to_short(), fetch_attribute(), fetch_call(), fetch_class(), fetch_constraint(), fetch_foreign_keys(), fetch_methfile(), fetch_method(), fetch_privilege(), fetch_result(), fetch_trigger(), fn_execute_array(), fn_execute_batch(), fn_execute_internal(), fn_get_db_parameter(), fn_proxy_client_execute(), fn_proxy_client_prepare_and_execute(), fn_proxy_client_schema_info(), fn_schema_info(), net_buf_cp_cas_type_and_charset(), process_request(), proxy_io_make_client_dbinfo_ok(), proxy_process_client_register(), ux_execute(), ux_execute_all(), ux_execute_array(), ux_execute_batch(), and ux_execute_call().
#define DRIVER_SESSION_SIZE SRV_CON_DBSESS_ID_SIZE |
Definition at line 130 of file cas_protocol.h.
Referenced by cas_make_session_for_driver(), cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define HEALTH_CHECK_DUMMY_DB "___health_check_dummy_db___" |
Definition at line 156 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define IS_CONNECTED_TO_PROXY | ( | type | ) |
Definition at line 269 of file cas_protocol.h.
#define IS_SSL_CLIENT | ( | driver_info | ) | (strncmp (driver_info, SRV_CON_CLIENT_MAGIC_STR_SSL, SRV_CON_CLIENT_MAGIC_LEN) == 0) |
Definition at line 40 of file cas_protocol.h.
Referenced by cas_main(), and receiver_thr_f().
#define IS_VALID_CAS_FC | ( | fc | ) | (fc >= CAS_FC_END_TRAN && fc < CAS_FC_MAX) |
Definition at line 274 of file cas_protocol.h.
Referenced by fn_proxy_client_conn_error().
#define MSG_HEADER_INFO_SIZE CAS_INFO_SIZE |
Definition at line 112 of file cas_protocol.h.
Referenced by proxy_set_con_status_in_tran(), proxy_set_con_status_out_tran(), proxy_set_force_out_tran(), and proxy_unset_force_out_tran().
#define MSG_HEADER_MSG_SIZE ((int) sizeof(int)) |
Definition at line 113 of file cas_protocol.h.
Referenced by init_msg_header(), and proxy_io_make_close_req_handle_ok().
#define MSG_HEADER_SIZE (MSG_HEADER_INFO_SIZE + MSG_HEADER_MSG_SIZE) |
Definition at line 114 of file cas_protocol.h.
Referenced by fn_proxy_cas_check_cas(), fn_proxy_cas_prepare(), fn_proxy_cas_prepare_and_execute(), fn_proxy_cas_schema_info(), get_msg_length(), net_read_header(), net_write_header(), proxy_check_cas_error(), proxy_get_cas_error_code(), proxy_handler_process_client_request(), proxy_has_different_column_info(), proxy_io_make_check_cas(), proxy_io_make_client_proxy_alive(), proxy_io_make_close_req_handle_ok(), proxy_io_make_end_tran_request(), proxy_io_make_error_msg(), proxy_io_make_ex_get_int(), proxy_io_make_get_db_version(), proxy_io_make_shard_info(), proxy_process_cas_register(), proxy_socket_io_read_from_cas_first(), proxy_socket_io_read_from_client_first(), proxy_socket_io_read_internal(), and shard_stmt_save_prepare_request().
#define SESSION_ID_SIZE 4 |
Definition at line 129 of file cas_protocol.h.
Referenced by cas_send_connect_reply_to_driver(), and proxy_io_make_client_dbinfo_ok().
#define SHARD_ID_INVALID (-1) |
Definition at line 152 of file cas_protocol.h.
#define SHARD_ID_UNSUPPORTED (-2) |
Definition at line 153 of file cas_protocol.h.
#define SRV_CON_CLIENT_INFO_SIZE 10 |
Definition at line 34 of file cas_protocol.h.
Referenced by cas_main(), dispatch_thr_f(), net_read_process(), proxy_client_io_free(), proxy_client_io_new(), proxy_get_driver_info_by_ctx(), proxy_get_driver_info_by_fd(), proxy_socket_io_new_client(), receiver_thr_f(), recv_fd(), send_fd(), shard_shm_init_client_info(), shard_shm_set_as_client_info(), and shard_shm_set_as_client_info_with_db_param().
#define SRV_CON_CLIENT_MAGIC_LEN 5 |
Definition at line 35 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_CLIENT_MAGIC_STR "CUBRK" |
Definition at line 36 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_CLIENT_MAGIC_STR_SSL "CUBRS" |
Definition at line 37 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_DB_INFO_SIZE |
Definition at line 61 of file cas_protocol.h.
Referenced by cas_main(), check_cas_log(), and get_dbinfo_length().
#define SRV_CON_DB_INFO_SIZE_PRIOR_8_2_0 (SRV_CON_DBNAME_SIZE + SRV_CON_DBUSER_SIZE + SRV_CON_DBPASSWD_SIZE) |
Definition at line 67 of file cas_protocol.h.
Referenced by cas_main(), and get_dbinfo_length().
#define SRV_CON_DB_INFO_SIZE_PRIOR_8_4_0 |
Definition at line 64 of file cas_protocol.h.
Referenced by cas_main(), and get_dbinfo_length().
#define SRV_CON_DBNAME_SIZE 32 |
Definition at line 54 of file cas_protocol.h.
#define SRV_CON_DBPASSWD_SIZE 32 |
Definition at line 56 of file cas_protocol.h.
Referenced by cas_main(), proxy_process_client_register(), set_db_connection_info(), and ux_check_connection().
#define SRV_CON_DBSESS_ID_SIZE 20 |
Definition at line 58 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define SRV_CON_DBUSER_SIZE 32 |
Definition at line 55 of file cas_protocol.h.
Referenced by cas_main(), proxy_process_client_register(), set_db_connection_info(), and ux_check_connection().
#define SRV_CON_MSG_IDX_CLIENT_TYPE 5 |
Definition at line 38 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_MSG_IDX_FUNCTION_FLAG 7 |
Definition at line 47 of file cas_protocol.h.
Referenced by proxy_socket_io_new_client(), and receiver_thr_f().
#define SRV_CON_MSG_IDX_MAJOR_VER (SRV_CON_MSG_IDX_PROTO_VERSION) |
Definition at line 50 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_MSG_IDX_MINOR_VER (SRV_CON_MSG_IDX_FUNCTION_FLAG) |
Definition at line 51 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_MSG_IDX_PATCH_VER (SRV_CON_MSG_IDX_RESERVED2) |
Definition at line 52 of file cas_protocol.h.
Referenced by receiver_thr_f().
#define SRV_CON_MSG_IDX_PROTO_VERSION 6 |
Definition at line 46 of file cas_protocol.h.
Referenced by cas_di_understand_renewed_error_code(), proxy_socket_io_new_client(), and receiver_thr_f().
#define SRV_CON_MSG_IDX_RESERVED2 8 |
Definition at line 48 of file cas_protocol.h.
#define SRV_CON_URL_SIZE 512 |
Definition at line 57 of file cas_protocol.h.
Referenced by cas_main(), and proxy_process_client_register().
#define SRV_CON_VER_STR_MAX_SIZE 20 |
Definition at line 59 of file cas_protocol.h.
Referenced by cas_main(), proxy_process_client_register(), shard_shm_set_as_client_info(), and shard_shm_set_as_client_info_with_db_param().
typedef enum t_broker_info_pos T_BROKER_INFO_POS |
Definition at line 243 of file cas_protocol.h.
typedef int T_BROKER_VERSION |
Definition at line 342 of file cas_protocol.h.
typedef enum t_cas_func_code T_CAS_FUNC_CODE |
Definition at line 213 of file cas_protocol.h.
typedef enum t_cas_protocol T_CAS_PROTOCOL |
Definition at line 230 of file cas_protocol.h.
typedef enum t_dbms_type T_DBMS_TYPE |
Definition at line 268 of file cas_protocol.h.
typedef enum t_driver_info_pos T_DRIVER_INFO_POS |
Definition at line 257 of file cas_protocol.h.
enum CAS_CHANGE_MODE |
Enumerator | |
---|---|
CAS_CHANGE_MODE_UNKNOWN | |
CAS_CHANGE_MODE_AUTO | |
CAS_CHANGE_MODE_KEEP | |
CAS_CHANGE_MODE_DEFAULT |
Definition at line 97 of file cas_protocol.h.
enum CAS_CLIENT_TYPE |
Enumerator | |
---|---|
CAS_CLIENT_TYPE_MIN | |
CAS_CLIENT_NONE | |
CAS_CLIENT_CCI | |
CAS_CLIENT_ODBC | |
CAS_CLIENT_JDBC | |
CAS_CLIENT_PHP | |
CAS_CLIENT_OLEDB | |
CAS_CLIENT_SERVER_SIDE_JDBC | |
CAS_CLIENT_TYPE_MAX |
Definition at line 70 of file cas_protocol.h.
enum CAS_INFO_STATUS_TYPE |
Enumerator | |
---|---|
CAS_INFO_STATUS_INACTIVE | |
CAS_INFO_STATUS_ACTIVE |
Definition at line 83 of file cas_protocol.h.
enum CAS_INFO_TYPE |
Enumerator | |
---|---|
CAS_INFO_STATUS | |
CAS_INFO_RESERVED_1 | |
CAS_INFO_RESERVED_2 | |
CAS_INFO_ADDITIONAL_FLAG |
Definition at line 89 of file cas_protocol.h.
enum t_broker_info_pos |
Definition at line 232 of file cas_protocol.h.
enum t_cas_func_code |
Definition at line 158 of file cas_protocol.h.
enum t_cas_protocol |
Enumerator | |
---|---|
PROTOCOL_V0 | |
PROTOCOL_V1 | |
PROTOCOL_V2 | |
PROTOCOL_V3 | |
PROTOCOL_V4 | |
PROTOCOL_V5 | |
PROTOCOL_V6 | |
PROTOCOL_V7 | |
PROTOCOL_V8 | |
PROTOCOL_V9 | |
PROTOCOL_V10 | |
CURRENT_PROTOCOL |
Definition at line 215 of file cas_protocol.h.
enum t_dbms_type |
Enumerator | |
---|---|
CAS_DBMS_CUBRID | |
CAS_DBMS_MYSQL | |
CAS_DBMS_ORACLE | |
CAS_PROXY_DBMS_CUBRID | |
CAS_PROXY_DBMS_MYSQL | |
CAS_PROXY_DBMS_ORACLE |
Definition at line 259 of file cas_protocol.h.
enum t_driver_info_pos |
Definition at line 245 of file cas_protocol.h.
const char* cas_bi_get_broker_info | ( | void | ) |
Definition at line 52 of file cas_meta.c.
References broker_info.
Referenced by cas_send_connect_reply_to_driver().
char cas_bi_get_cci_pconnect | ( | void | ) |
Definition at line 118 of file cas_meta.c.
References broker_info, and BROKER_INFO_CCI_PCONNECT.
char cas_bi_get_dbms_type | ( | void | ) |
Definition at line 64 of file cas_meta.c.
References broker_info, and BROKER_INFO_DBMS_TYPE.
char cas_bi_get_keep_connection | ( | void | ) |
Definition at line 76 of file cas_meta.c.
References broker_info, and BROKER_INFO_KEEP_CONNECTION.
char cas_bi_get_protocol_version | ( | void | ) |
Definition at line 130 of file cas_meta.c.
References broker_info, and BROKER_INFO_PROTO_VERSION.
bool cas_bi_get_renewed_error_code | ( | void | ) |
Definition at line 197 of file cas_meta.c.
References BI_FUNC_ERROR_CODE, and cas_bi_is_enabled_function().
char cas_bi_get_statement_pooling | ( | void | ) |
Definition at line 97 of file cas_meta.c.
References broker_info, and BROKER_INFO_STATEMENT_POOLING.
void cas_bi_make_broker_info | ( | char * | broker_info, |
char | dbms_type, | ||
char | statement_pooling, | ||
char | cci_pconnect | ||
) |
Definition at line 214 of file cas_meta.c.
References BROKER_INFO_CCI_PCONNECT, BROKER_INFO_DBMS_TYPE, BROKER_INFO_FUNCTION_FLAG, BROKER_INFO_KEEP_CONNECTION, BROKER_INFO_PROTO_VERSION, BROKER_INFO_RESERVED2, BROKER_INFO_RESERVED3, BROKER_INFO_STATEMENT_POOLING, BROKER_RENEWED_ERROR_CODE, BROKER_SUPPORT_HOLDABLE_RESULT, CAS_KEEP_CONNECTION_ON, CAS_PROTO_PACK_CURRENT_NET_VER, CAS_STATEMENT_POOLING_OFF, CAS_STATEMENT_POOLING_ON, CCI_PCONNECT_OFF, and CCI_PCONNECT_ON.
Referenced by proxy_io_make_client_dbinfo_ok().
void cas_bi_set_cci_pconnect | ( | const char | cci_pconnect | ) |
Definition at line 103 of file cas_meta.c.
References assert, broker_info, BROKER_INFO_CCI_PCONNECT, CCI_PCONNECT_OFF, and CCI_PCONNECT_ON.
Referenced by cas_main().
void cas_bi_set_dbms_type | ( | const char | dbms_type | ) |
Definition at line 58 of file cas_meta.c.
References broker_info, and BROKER_INFO_DBMS_TYPE.
Referenced by cas_main().
void cas_bi_set_keep_connection | ( | const char | keep_connection | ) |
Definition at line 70 of file cas_meta.c.
References broker_info, and BROKER_INFO_KEEP_CONNECTION.
void cas_bi_set_protocol_version | ( | const char | protocol_version | ) |
Definition at line 124 of file cas_meta.c.
References broker_info, and BROKER_INFO_PROTO_VERSION.
Definition at line 184 of file cas_meta.c.
References BI_FUNC_ERROR_CODE, cas_bi_set_function_disable(), and cas_bi_set_function_enable().
void cas_bi_set_statement_pooling | ( | const char | statement_pooling | ) |
Definition at line 82 of file cas_meta.c.
References assert, broker_info, BROKER_INFO_STATEMENT_POOLING, CAS_STATEMENT_POOLING_OFF, and CAS_STATEMENT_POOLING_ON.
Referenced by cas_main().
Definition at line 203 of file cas_meta.c.
References BROKER_RENEWED_ERROR_CODE, CAS_PROTO_INDICATOR, DRIVER_INFO_FUNCTION_FLAG, IS_SET_BIT, and SRV_CON_MSG_IDX_PROTO_VERSION.
Referenced by net_buf_error_msg_set(), net_write_error(), proxy_convert_error_code(), and send_error_to_driver().