Home
last modified time | relevance | path

Searched refs:bindto (Results 1 – 6 of 6) sorted by relevance

/PHP-8.0/ext/standard/tests/network/
H A Dbug74764.phpt2 Bug #74764 IPv6 bindto fails with stream_socket_client()
12 ['socket' => array('bindto' => "[::]:0")]
17 array('socket' => array('bindto' => "0.0.0.0:0"))
H A Dbug80067.phpt2 Bug #80067 (Omitting the port in bindto setting errors)
10 $context = stream_context_create(['socket' => ['bindto' => '0']]);
H A Dbindto.phpt2 Test invalid bindto
7 'bindto' => 'invalid',
/PHP-8.0/main/
H A Dnetwork.c781 int *error_code, const char *bindto, unsigned short bindport, long sockopts argument
826 if (!bindto || strchr(bindto, ':')) {
850 if (bindto) {
855 if (strchr(bindto,':')) {
865 if (!inet_aton(bindto, &in4->sin_addr)) {
866 php_error_docref(NULL, E_WARNING, "Invalid IP Address: %s", bindto);
880 if (inet_pton(AF_INET6, bindto, &in6->sin6_addr) < 1) {
881 php_error_docref(NULL, E_WARNING, "Invalid IP Address: %s", bindto);
888 …php_error_docref(NULL, E_WARNING, "Failed to bind to '%s:%d', system said: %s", bindto, bindport, …
H A Dphp_network.h263 int *error_code, const char *bindto, unsigned short bindport, long sockopts
/PHP-8.0/main/streams/
H A Dxp_socket.c704 char *host = NULL, *bindto = NULL; in php_tcp_sockop_connect() local
752bindto = parse_ip_address_ex(Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval), &bindport, xparam->want_err… in php_tcp_sockop_connect()
787 bindto, in php_tcp_sockop_connect()
798 if (bindto) { in php_tcp_sockop_connect()
799 efree(bindto); in php_tcp_sockop_connect()

Completed in 18 milliseconds