Lines Matching refs:protocol
32 PHPAPI int php_stream_xport_register(char *protocol, php_stream_transport_factory factory TSRMLS_DC) in php_stream_xport_register() argument
34 …return zend_hash_update(&xport_hash, protocol, strlen(protocol) + 1, &factory, sizeof(factory), NU… in php_stream_xport_register()
37 PHPAPI int php_stream_xport_unregister(char *protocol TSRMLS_DC) in php_stream_xport_unregister()
39 return zend_hash_del(&xport_hash, protocol, strlen(protocol) + 1); 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()