Home
last modified time | relevance | path

Searched refs:pfc (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/mysqlnd/
H A Dmysqlnd_protocol_frame_codec.c36 pfc->data->packet_no = pfc->data->compressed_envelope_packet_no = 0; in MYSQLND_METHOD()
406 pfc->cmd_buffer.buffer = mnd_pemalloc(pfc->cmd_buffer.length, pfc->persistent); in MYSQLND_METHOD()
408pfc->cmd_buffer.buffer = mnd_perealloc(pfc->cmd_buffer.buffer, pfc->cmd_buffer.length, pfc->persis… in MYSQLND_METHOD()
432 mnd_pefree(pfc->data->sha256_server_public_key, pfc->persistent); in MYSQLND_METHOD()
461 if (pfc) { in MYSQLND_METHOD()
462 pfc->data->m.free_contents(pfc); in MYSQLND_METHOD()
466 mnd_pefree(pfc->cmd_buffer.buffer, pfc->persistent); in MYSQLND_METHOD()
470 mnd_pefree(pfc, pfc->persistent); in MYSQLND_METHOD()
508 DBG_RETURN(pfc); in mysqlnd_pfc_init()
518 if (pfc) { in mysqlnd_pfc_free()
[all …]
H A Dmysqlnd_wireprotocol.c261 if (pfc->data->compressed || pfc->data->packet_no == header->packet_no) { in mysqlnd_read_header()
267 pfc->data->packet_no++; in mysqlnd_read_header()
284 MYSQLND_PFC * pfc, in mysqlnd_read_packet_header_and_body() argument
307 if (FAIL == pfc->data->m.receive(pfc, vio, buf, packet_header->size, stats, error_info)) { in mysqlnd_read_packet_header_and_body()
963 pfc->data->m.reset(pfc, stats, error_info); in php_mysqlnd_cmd_write()
975 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cmd_write()
979 tmp = (tmp_len > pfc->cmd_buffer.length)? mnd_emalloc(tmp_len):pfc->cmd_buffer.buffer; in php_mysqlnd_cmd_write()
990 sent = pfc->data->m.send(pfc, vio, tmp, tmp_len - MYSQLND_HEADER_SIZE, stats, error_info); in php_mysqlnd_cmd_write()
1943 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_sha256_pk_request_write()
2021 sent = pfc->data->m.send(pfc, vio, buffer, 1, stats, error_info); in php_mysqlnd_cached_sha2_result_write()
[all …]
H A Dmysqlnd_driver.c229 MYSQLND_PFC * pfc = mnd_pecalloc(1, pfc_alloc_size + pfc_data_alloc_size, persistent); in MYSQLND_METHOD() local
233 if (pfc) { in MYSQLND_METHOD()
234 pfc->data = (MYSQLND_PFC_DATA*)((char*)pfc + pfc_alloc_size); in MYSQLND_METHOD()
235 pfc->persistent = pfc->data->persistent = persistent; in MYSQLND_METHOD()
236 pfc->data->m = *mysqlnd_pfc_get_methods(); in MYSQLND_METHOD()
238 pfc->data->m.init(pfc, stats, error_info); in MYSQLND_METHOD()
240 DBG_RETURN(pfc); in MYSQLND_METHOD()
H A Dmysqlnd_ext_plugin.h31 void ** (*get_pfc_area)(const MYSQLND_PFC * pfc, const unsigned int plugin_id);
44 #define mysqlnd_plugin_get_plugin_pfc_data(pfc, p_id) mysqlnd_plugin_area_getters.get_pfc_area(… argument
102 } pfc; member
150 #define mysqlnd_pfc_get_methods() mysqlnd_plugin_methods_xetters.pfc.get()
151 #define mysqlnd_pfc_set_methods(m) mysqlnd_plugin_methods_xetters.pfc.set((m))
H A Dmysqlnd_protocol_frame_codec.h22 PHPAPI void mysqlnd_pfc_free(MYSQLND_PFC * const pfc, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * e…
H A Dmysqlnd_ext_plugin.c130 mysqlnd_plugin__get_plugin_pfc_data(const MYSQLND_PFC * pfc, const unsigned int plugin_id) in mysqlnd_plugin__get_plugin_pfc_data() argument
134 if (!pfc || plugin_id >= mysqlnd_plugin_count()) { in mysqlnd_plugin__get_plugin_pfc_data()
137 DBG_RETURN((void *)((char *)pfc + sizeof(MYSQLND_PFC) + plugin_id * sizeof(void *))); in mysqlnd_plugin__get_plugin_pfc_data()
H A Dmysqlnd_structs.h1086 typedef void (*func_mysqlnd_pfc__init)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const stats, MYS…
1087 typedef void (*func_mysqlnd_pfc__dtor)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stats…
1088 typedef void (*func_mysqlnd_pfc__reset)(MYSQLND_PFC * const pfc, MYSQLND_STATS * const conn_stat…
1089 typedef enum_func_status (*func_mysqlnd_pfc__set_client_option)(MYSQLND_PFC * const pfc, enum_mysql…
1092 typedef size_t (*func_mysqlnd_pfc__send)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const vio, zend_…
1093 typedef enum_func_status (*func_mysqlnd_pfc__receive)(MYSQLND_PFC * const pfc, MYSQLND_VIO * const …
1094 …fc__read_compressed_packet_from_stream_and_fill_read_buffer)(MYSQLND_PFC * pfc, MYSQLND_VIO * cons…
1095 typedef void (*func_mysqlnd_pfc__free_contents)(MYSQLND_PFC * pfc);
H A Dmysqlnd_connection.c450 MYSQLND_PFC * pfc = conn->protocol_frame_codec; in MYSQLND_METHOD() local
466 if (pfc && pfc->data->flags & MYSQLND_PROTOCOL_FLAG_USE_COMPRESSION) { in MYSQLND_METHOD()
569 MYSQLND_PFC * pfc = conn->protocol_frame_codec; local
593 if (pfc->data->compressed) {
600 pfc->data->compressed = FALSE;
602 if (pfc->data->ssl) {
603 pfc->data->ssl = FALSE;
647 pfc->data->compressed = TRUE;
654 pfc->data->compressed = mysql_flags & CLIENT_COMPRESS? TRUE:FALSE;

Completed in 41 milliseconds