Lines Matching refs:protocol
32 PHPAPI int php_stream_xport_register(const char *protocol, php_stream_transport_factory factory) in php_stream_xport_register() argument
34 …return zend_hash_str_update_ptr(&xport_hash, protocol, strlen(protocol), factory) ? SUCCESS : FAIL… in php_stream_xport_register()
37 PHPAPI int php_stream_xport_unregister(const char *protocol) in php_stream_xport_unregister() argument
39 return zend_hash_str_del(&xport_hash, protocol, strlen(protocol)); in php_stream_xport_unregister()
62 const char *p, *protocol = NULL; in _php_stream_xport_create() local
100 protocol = name; in _php_stream_xport_create()
104 protocol = "tcp"; in _php_stream_xport_create()
108 if (protocol) { in _php_stream_xport_create()
109 char *tmp = estrndup(protocol, n); in _php_stream_xport_create()
115 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); in _php_stream_xport_create()
132 stream = (factory)(protocol, n, in _php_stream_xport_create()