Lines Matching refs:protocol
30 PHPAPI int php_stream_xport_register(const char *protocol, php_stream_transport_factory factory) in php_stream_xport_register() argument
32 zend_string *str = zend_string_init_interned(protocol, strlen(protocol), 1); in php_stream_xport_register()
39 PHPAPI int php_stream_xport_unregister(const char *protocol) in php_stream_xport_unregister() argument
41 return zend_hash_str_del(&xport_hash, protocol, strlen(protocol)); in php_stream_xport_unregister()
64 const char *p, *protocol = NULL; in _php_stream_xport_create() local
103 protocol = name; in _php_stream_xport_create()
107 protocol = "tcp"; in _php_stream_xport_create()
111 if (protocol) { in _php_stream_xport_create()
112 if (NULL == (factory = zend_hash_str_find_ptr(&xport_hash, protocol, n))) { in _php_stream_xport_create()
117 PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); in _php_stream_xport_create()
132 stream = (factory)(protocol, n, in _php_stream_xport_create()