Searched refs:packet (Results 1 - 5 of 5) sorted by relevance

/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_wireprotocol.c35 #define PACKET_READ_HEADER_AND_BODY(packet, conn, buf, buf_size, packet_type_as_text, packet_type) \
38 if (FAIL == mysqlnd_read_header((conn)->net, &((packet)->header), (conn)->stats, ((conn)->error_info) TSRMLS_CC)) {\
45 if ((buf_size) < (packet)->header.size) { \
47 (buf_size), (packet)->header.size, (packet)->header.size - (buf_size)); \
50 if (FAIL == conn->net->data->m.receive_ex((conn)->net, (buf), (packet)->header.size, (conn)->stats, ((conn)->error_info) TSRMLS_CC)) { \
54 DBG_ERR_FMT("Empty '%s' packet body", (packet_type_as_text)); \
58 MYSQLND_HEADER_SIZE + (packet)->header.size, \
65 if ((size_t)(p - begin) > packet->header.size) { \
130 php_mysqlnd_net_field_length(zend_uchar **packet) argument
160 php_mysqlnd_net_field_length_ll(zend_uchar **packet) argument
189 php_mysqlnd_net_store_length(zend_uchar *packet, uint64_t length) argument
327 MYSQLND_PACKET_GREET *packet= (MYSQLND_PACKET_GREET *) _packet; local
488 MYSQLND_PACKET_AUTH * packet= (MYSQLND_PACKET_AUTH *) _packet; local
689 register MYSQLND_PACKET_AUTH_RESPONSE * packet= (MYSQLND_PACKET_AUTH_RESPONSE *) _packet; local
803 MYSQLND_PACKET_CHANGE_AUTH_RESPONSE *packet= (MYSQLND_PACKET_CHANGE_AUTH_RESPONSE *) _packet; local
852 register MYSQLND_PACKET_OK *packet= (MYSQLND_PACKET_OK *) _packet; local
938 MYSQLND_PACKET_EOF *packet= (MYSQLND_PACKET_EOF *) _packet; local
1010 MYSQLND_PACKET_COMMAND * packet= (MYSQLND_PACKET_COMMAND *) _packet; local
1093 MYSQLND_PACKET_RSET_HEADER *packet= (MYSQLND_PACKET_RSET_HEADER *) _packet; local
1227 MYSQLND_PACKET_RES_FIELD *packet = (MYSQLND_PACKET_RES_FIELD *) _packet; local
1793 MYSQLND_PACKET_ROW *packet= (MYSQLND_PACKET_ROW *) _packet; local
1911 MYSQLND_PACKET_STATS *packet= (MYSQLND_PACKET_STATS *) _packet; local
1959 MYSQLND_PACKET_PREPARE_RESPONSE *packet= (MYSQLND_PACKET_PREPARE_RESPONSE *) _packet; local
2046 MYSQLND_PACKET_CHG_USER_RESPONSE *packet= (MYSQLND_PACKET_CHG_USER_RESPONSE *) _packet; local
2163 MYSQLND_PACKET_SHA256_PK_REQUEST_RESPONSE * packet= (MYSQLND_PACKET_SHA256_PK_REQUEST_RESPONSE *) _packet; local
2310 struct st_mysqlnd_packet_greet * packet = mnd_pecalloc(1, packet_methods[PROT_GREET_PACKET].struct_size, persistent); local
2325 struct st_mysqlnd_packet_auth * packet = mnd_pecalloc(1, packet_methods[PROT_AUTH_PACKET].struct_size, persistent); local
2340 struct st_mysqlnd_packet_auth_response * packet = mnd_pecalloc(1, packet_methods[PROT_AUTH_RESP_PACKET].struct_size, persistent); local
2355 struct st_mysqlnd_packet_change_auth_response * packet = mnd_pecalloc(1, packet_methods[PROT_CHANGE_AUTH_RESP_PACKET].struct_size, persistent); local
2370 struct st_mysqlnd_packet_ok * packet = mnd_pecalloc(1, packet_methods[PROT_OK_PACKET].struct_size, persistent); local
2385 struct st_mysqlnd_packet_eof * packet = mnd_pecalloc(1, packet_methods[PROT_EOF_PACKET].struct_size, persistent); local
2400 struct st_mysqlnd_packet_command * packet = mnd_pecalloc(1, packet_methods[PROT_CMD_PACKET].struct_size, persistent); local
2415 struct st_mysqlnd_packet_rset_header * packet = mnd_pecalloc(1, packet_methods[PROT_RSET_HEADER_PACKET].struct_size, persistent); local
2430 struct st_mysqlnd_packet_res_field * packet = mnd_pecalloc(1, packet_methods[PROT_RSET_FLD_PACKET].struct_size, persistent); local
2445 struct st_mysqlnd_packet_row * packet = mnd_pecalloc(1, packet_methods[PROT_ROW_PACKET].struct_size, persistent); local
2460 struct st_mysqlnd_packet_stats * packet = mnd_pecalloc(1, packet_methods[PROT_STATS_PACKET].struct_size, persistent); local
2475 struct st_mysqlnd_packet_prepare_response * packet = mnd_pecalloc(1, packet_methods[PROT_PREPARE_RESP_PACKET].struct_size, persistent); local
2490 struct st_mysqlnd_packet_chg_user_resp * packet = mnd_pecalloc(1, packet_methods[PROT_CHG_USER_RESP_PACKET].struct_size, persistent); local
2505 struct st_mysqlnd_packet_sha256_pk_request * packet = mnd_pecalloc(1, packet_methods[PROT_SHA256_PK_REQUEST_PACKET].struct_size, persistent); local
2520 struct st_mysqlnd_packet_sha256_pk_request_response * packet = mnd_pecalloc(1, packet_methods[PROT_SHA256_PK_REQUEST_RESPONSE_PACKET].struct_size, persistent); local
[all...]
H A Dmysqlnd_wireprotocol.h39 #define PACKET_WRITE(packet, conn) ((packet)->header.m->write_to_net((packet), (conn) TSRMLS_CC))
40 #define PACKET_READ(packet, conn) ((packet)->header.m->read_from_net((packet), (conn) TSRMLS_CC))
41 #define PACKET_FREE(packet) \
43 DBG_INF_FMT("PACKET_FREE(%p)", packet); \
44 if ((packet)) { \
45 ((packet)
[all...]
/PHP_TRUNK/sapi/fpm/tests/
H A Dfcgi.inc269 * Build a FastCGI packet
271 * @param Integer $type Type of the packet
272 * @param String $content Content of the packet
360 * @param String $data String containing all the packet
382 if ($packet = fread($this->_sock, self::HEADER_LEN)) {
383 $resp = $this->decodePacketHeader($packet);
/PHP_TRUNK/ext/wddx/
H A Dphp_wddx_api.h51 #define php_wddx_add_chunk(packet, str) smart_str_appends(packet, str)
52 #define php_wddx_add_chunk_ex(packet, str, len) smart_str_appendl(packet, str, len)
53 #define php_wddx_add_chunk_static(packet, str) smart_str_appendl(packet, str, sizeof(str)-1)
58 void php_wddx_destructor(wddx_packet *packet);
60 void php_wddx_packet_start(wddx_packet *packet, char *comment, size_t comment_len);
61 void php_wddx_packet_end(wddx_packet *packet);
63 void php_wddx_serialize_var(wddx_packet *packet, zva
[all...]
H A Dwddx.c129 ZEND_ARG_INFO(0, packet)
262 wddx_packet *packet; local
266 packet = php_wddx_constructor();
268 php_wddx_packet_start(packet, NULL, 0);
269 php_wddx_add_chunk_static(packet, WDDX_STRUCT_S);
272 php_wddx_serialize_var(packet, struc, key TSRMLS_CC);
275 php_wddx_add_chunk_static(packet, WDDX_STRUCT_E);
276 php_wddx_packet_end(packet);
277 smart_str_0(packet);
278 str = zend_string_copy(packet
355 php_wddx_packet_start(wddx_packet *packet, char *comment, size_t comment_len) argument
373 php_wddx_packet_end(wddx_packet *packet) argument
388 php_wddx_serialize_string(wddx_packet *packet, zval *var TSRMLS_DC) argument
407 php_wddx_serialize_number(wddx_packet *packet, zval *var) argument
423 php_wddx_serialize_boolean(wddx_packet *packet, zval *var) argument
431 php_wddx_serialize_unset(wddx_packet *packet) argument
439 php_wddx_serialize_object(wddx_packet *packet, zval *obj) argument
531 php_wddx_serialize_array(wddx_packet *packet, zval *arr) argument
591 php_wddx_serialize_var(wddx_packet *packet, zval *var, zend_string *name TSRMLS_DC) argument
665 php_wddx_add_var(wddx_packet *packet, zval *name_var) argument
1089 wddx_packet *packet; local
1112 wddx_packet *packet; local
1150 smart_str *packet; local
1160 php_wddx_destructor(wddx_packet *packet) argument
1173 wddx_packet *packet; local
1195 wddx_packet *packet = NULL; local
1221 wddx_packet *packet = NULL; local
1256 zval *packet; local
[all...]

Completed in 7 milliseconds