Lines Matching refs:vio

75 MYSQLND_METHOD(mysqlnd_vio, network_read)(MYSQLND_VIO * const vio, zend_uchar * const buffer, const…  in MYSQLND_METHOD()
79 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD()
104 MYSQLND_METHOD(mysqlnd_vio, network_write)(MYSQLND_VIO * const vio, const zend_uchar * const buffer… in MYSQLND_METHOD()
110 ret = php_stream_write(vio->data->m.get_stream(vio), (char *)buffer, count); in MYSQLND_METHOD()
118 MYSQLND_METHOD(mysqlnd_vio, open_pipe)(MYSQLND_VIO * const vio, const MYSQLND_CSTRING scheme, const… in MYSQLND_METHOD()
153 MYSQLND_METHOD(mysqlnd_vio, open_tcp_or_unix)(MYSQLND_VIO * const vio, const MYSQLND_CSTRING scheme… in MYSQLND_METHOD()
168 vio->data->stream = NULL; in MYSQLND_METHOD()
171 hashed_details_len = mnd_sprintf(&hashed_details, 0, "%p", vio); in MYSQLND_METHOD()
175 if (vio->data->options.timeout_connect) { in MYSQLND_METHOD()
176 tv.tv_sec = vio->data->options.timeout_connect; in MYSQLND_METHOD()
182 hashed_details, (vio->data->options.timeout_connect) ? &tv : NULL, in MYSQLND_METHOD()
244 MYSQLND_METHOD(mysqlnd_vio, post_connect_set_opt)(MYSQLND_VIO * const vio, const MYSQLND_CSTRING sc… in MYSQLND_METHOD()
247 php_stream * net_stream = vio->data->m.get_stream(vio); in MYSQLND_METHOD()
250 if (vio->data->options.timeout_read) { in MYSQLND_METHOD()
252 DBG_INF_FMT("setting %u as PHP_STREAM_OPTION_READ_TIMEOUT", vio->data->options.timeout_read); in MYSQLND_METHOD()
253 tv.tv_sec = vio->data->options.timeout_read; in MYSQLND_METHOD()
265 net_stream->chunk_size = vio->data->options.net_read_buffer_size; in MYSQLND_METHOD()
276 MYSQLND_METHOD(mysqlnd_vio, get_open_stream)(MYSQLND_VIO * const vio, const MYSQLND_CSTRING scheme, in MYSQLND_METHOD()
282 ret = vio->data->m.open_pipe; in MYSQLND_METHOD()
287 ret = vio->data->m.open_tcp_or_unix; in MYSQLND_METHOD()
301 MYSQLND_METHOD(mysqlnd_vio, connect)(MYSQLND_VIO * const vio, const MYSQLND_CSTRING scheme, const b… in MYSQLND_METHOD()
308 vio->data->m.close_stream(vio, conn_stats, error_info); in MYSQLND_METHOD()
310 open_stream = vio->data->m.get_open_stream(vio, scheme, error_info); in MYSQLND_METHOD()
312 php_stream * net_stream = open_stream(vio, scheme, persistent, conn_stats, error_info); in MYSQLND_METHOD()
313 if (net_stream && PASS == vio->data->m.set_stream(vio, net_stream)) { in MYSQLND_METHOD()
314 vio->data->m.post_connect_set_opt(vio, scheme, conn_stats, error_info); in MYSQLND_METHOD()
604 MYSQLND_METHOD(mysqlnd_vio, disable_ssl)(MYSQLND_VIO * const vio) in MYSQLND_METHOD()
694 MYSQLND_METHOD(mysqlnd_vio, dtor)(MYSQLND_VIO * const vio, MYSQLND_STATS * const stats, MYSQLND_ERR… in MYSQLND_METHOD()
697 if (vio) { in MYSQLND_METHOD()
698 vio->data->m.free_contents(vio); in MYSQLND_METHOD()
699 vio->data->m.close_stream(vio, stats, error_info); in MYSQLND_METHOD()
701 mnd_pefree(vio, vio->persistent); in MYSQLND_METHOD()
721 MYSQLND_METHOD(mysqlnd_vio, set_stream)(MYSQLND_VIO * const vio, php_stream * net_stream) in MYSQLND_METHOD()
724 if (vio) { in MYSQLND_METHOD()
725 vio->data->stream = net_stream; in MYSQLND_METHOD()
735 MYSQLND_METHOD(mysqlnd_vio, has_valid_stream)(const MYSQLND_VIO * const vio) in MYSQLND_METHOD()
738 DBG_INF_FMT("%p %p", vio, vio? vio->data->stream:NULL); in MYSQLND_METHOD()
739 DBG_RETURN((vio && vio->data->stream)? TRUE: FALSE); in MYSQLND_METHOD()
779 MYSQLND_VIO * vio; in mysqlnd_vio_init() local
781 vio = factory->get_vio(persistent, stats, error_info); in mysqlnd_vio_init()
782 DBG_RETURN(vio); in mysqlnd_vio_init()
789 mysqlnd_vio_free(MYSQLND_VIO * const vio, MYSQLND_STATS * stats, MYSQLND_ERROR_INFO * error_info) in mysqlnd_vio_free() argument
792 if (vio) { in mysqlnd_vio_free()
793 vio->data->m.dtor(vio, stats, error_info); in mysqlnd_vio_free()