Home
last modified time | relevance | path

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

/PHP-8.1/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',
H A Dgh12190.phpt10 $context = stream_context_create(['socket' => ['bindto' => '0:0']]);
/PHP-8.1/main/
H A Dnetwork.c788 int *error_code, const char *bindto, unsigned short bindport, long sockopts argument
826 if (!bindto || strchr(bindto, ':')) {
838 if (bindto && (strchr(bindto, ':') || !strcmp(bindto, "0"))) {
840 bindto = NULL;
857 if (bindto) {
869 if (inet_pton(AF_INET, bindto, &local_address.in4.sin_addr) == 1) {
871 if (inet_aton(bindto, &local_address.in4.sin_addr)) {
881 if (inet_pton(AF_INET6, bindto, &local_address.in6.sin6_addr) == 1) {
889 php_error_docref(NULL, E_WARNING, "Invalid IP Address: %s", bindto);
891 …php_error_docref(NULL, E_WARNING, "Failed to bind to '%s:%d', system said: %s", bindto, bindport, …
H A Dphp_network.h270 int *error_code, const char *bindto, unsigned short bindport, long sockopts
/PHP-8.1/main/streams/
H A Dxp_socket.c705 char *host = NULL, *bindto = NULL; in php_tcp_sockop_connect() local
753bindto = parse_ip_address_ex(Z_STRVAL_P(tmpzval), Z_STRLEN_P(tmpzval), &bindport, xparam->want_err… in php_tcp_sockop_connect()
788 bindto, in php_tcp_sockop_connect()
799 if (bindto) { in php_tcp_sockop_connect()
800 efree(bindto); in php_tcp_sockop_connect()

Completed in 20 milliseconds