Searched defs:protocol (Results 1 - 9 of 9) sorted by relevance

/PHP_5_4/ext/sockets/
H A Dsockets.c193 ZEND_ARG_INFO(0, protocol)
261 ZEND_ARG_INFO(0, protocol)
1516 /* {{{ proto resource socket_create(int domain, int type, int protocol) U
2422 /* {{{ proto bool socket_create_pair(int domain, int type, int protocol, array &fd) U
2429 long domain, type, protocol; local
2431 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lllz", &domain, &type, &protocol, &fds_array_zval) == FAILURE) {
2452 if (socketpair(domain, type, protocol, fds_array) != 0) {
/PHP_5_4/main/streams/
H A Dtransports.c32 PHPAPI int php_stream_xport_register(char *protocol, php_stream_transport_factory factory TSRMLS_DC) argument
34 return zend_hash_update(&xport_hash, protocol, strlen(protocol) + 1, &factory, sizeof(factory), NULL);
37 PHPAPI int php_stream_xport_unregister(char *protocol TSRMLS_DC)
39 return zend_hash_del(&xport_hash, protocol, strlen(protocol) + 1);
62 const char *p, *protocol = NULL; local
100 protocol = name;
104 protocol = "tcp";
108 if (protocol) {
[all...]
H A Duserspace.c516 /* {{{ proto bool stream_wrapper_register(string protocol, string classname[, integer flags])
517 Registers a custom URL protocol handler class */
520 char *protocol, *classname; local
526 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &protocol, &protocol_len, &classname, &classname_len, &flags) == FAILURE) {
531 uwrap->protoname = estrndup(protocol, protocol_len);
541 if (php_register_url_stream_wrapper_volatile(protocol, &uwrap->wrapper TSRMLS_CC) == SUCCESS) {
545 if (zend_hash_exists(php_stream_get_url_stream_wrappers_hash(), protocol, protocol_len + 1)) {
546 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Protocol %s:// is already defined.", protocol);
548 /* Hash doesn't exist so it must have been an invalid protocol scheme */
549 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid protocol schem
565 char *protocol; local
586 char *protocol; local
[all...]
H A Dstreams.c1690 /* Validate protocol scheme names during registration
1693 static inline int php_stream_wrapper_scheme_validate(char *protocol, int protocol_len) argument
1698 if (!isalnum((int)protocol[i]) &&
1699 protocol[i] != '+' &&
1700 protocol[i] != '-' &&
1701 protocol[i] != '.') {
1710 PHPAPI int php_register_url_stream_wrapper(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) argument
1712 int protocol_len = strlen(protocol);
1714 if (php_stream_wrapper_scheme_validate(protocol, protocol_len) == FAILURE) {
1718 return zend_hash_add(&url_stream_wrappers_hash, protocol, protocol_le
1736 php_register_url_stream_wrapper_volatile(char *protocol, php_stream_wrapper *wrapper TSRMLS_DC) argument
1766 const char *p, *protocol = NULL; local
[all...]
/PHP_5_4/ext/mysqlnd/
H A Dmysqlnd_ext_plugin.c75 _mysqlnd_plugin_get_plugin_protocol_data(const MYSQLND_PROTOCOL * protocol, unsigned int plugin_id TSRMLS_DC) argument
79 if (!protocol || plugin_id >= mysqlnd_plugin_count()) {
82 DBG_RETURN((void *)((char *)protocol + sizeof(MYSQLND_PROTOCOL) + plugin_id * sizeof(void *)));
H A Dmysqlnd_structs.h180 enum_mysqlnd_protocol_type protocol; member in struct:st_mysqlnd_options
339 typedef struct st_mysqlnd_packet_greet * (*func_mysqlnd_protocol__get_greet_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
340 typedef struct st_mysqlnd_packet_auth * (*func_mysqlnd_protocol__get_auth_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
341 typedef struct st_mysqlnd_packet_auth_response *(*func_mysqlnd_protocol__get_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
342 typedef struct st_mysqlnd_packet_change_auth_response * (*func_mysqlnd_protocol__get_change_auth_response_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
343 typedef struct st_mysqlnd_packet_ok * (*func_mysqlnd_protocol__get_ok_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
344 typedef struct st_mysqlnd_packet_command * (*func_mysqlnd_protocol__get_command_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
345 typedef struct st_mysqlnd_packet_eof * (*func_mysqlnd_protocol__get_eof_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
346 typedef struct st_mysqlnd_packet_rset_header * (*func_mysqlnd_protocol__get_rset_header_packet)(MYSQLND_PROTOCOL * const protocol, zend_bool persistent TSRMLS_DC);
347 typedef struct st_mysqlnd_packet_res_field * (*func_mysqlnd_protocol__get_result_field_packet)(MYSQLND_PROTOCOL * const protocol, zend_boo
810 MYSQLND_PROTOCOL * protocol; member in struct:st_mysqlnd_connection_data
[all...]
/PHP_5_4/win32/
H A Dsockets.c31 PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]) argument
45 sock[0] = socket(domain, type, protocol);
66 sock[1] = socket(domain, type, protocol);
/PHP_5_4/ext/standard/
H A Dstreamsfuncs.c48 /* {{{ proto array stream_socket_pair(int domain, int type, int protocol)
52 long domain, type, protocol; local
57 &domain, &type, &protocol)) {
61 if (0 != socketpair(domain, type, protocol, pair)) {
/PHP_5_4/ext/ldap/
H A Dldap.c2418 int rc, protocol = LDAP_VERSION3; local
2426 if (((rc = ldap_set_option(ld->link, LDAP_OPT_PROTOCOL_VERSION, &protocol)) != LDAP_SUCCESS) ||

Completed in 39 milliseconds