Lines Matching refs:addr

255 #define PHP_UV_SOCKADDR_IPV4(sockaddr) sockaddr->addr.ipv4
256 #define PHP_UV_SOCKADDR_IPV4_P(sockaddr) &sockaddr->addr.ipv4
258 #define PHP_UV_SOCKADDR_IPV6(sockaddr) sockaddr->addr.ipv6
259 #define PHP_UV_SOCKADDR_IPV6_P(sockaddr) &sockaddr->addr.ipv6
1131 static zval php_uv_address_to_zval(const struct sockaddr *addr) argument
1141 switch (addr->sa_family) {
1144 a6 = (const struct sockaddr_in6 *)addr;
1155 a4 = (const struct sockaddr_in *)addr;
2110 …(uv_udp_t* handle, ssize_t nread, const uv_buf_t* buf, const struct sockaddr* addr, unsigned flags) argument
2216 const char *addr; local
2229 addr = (char*) &((struct sockaddr_in*) address->ai_addr)->sin_addr;
2230 uv_inet_ntop(address->ai_family, addr, ip, INET6_ADDRSTRLEN);
2240 addr = (char*) &((struct sockaddr_in6*) address->ai_addr)->sin6_addr;
2241 uv_inet_ntop(address->ai_family, addr, ip, INET6_ADDRSTRLEN);
2314 php_uv_sockaddr_t *addr; local
2318 UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (ip_type == 1) ? uv_sockaddr_ipv4_ce : uv_sockaddr_ipv6_ce)
2322 uv_ip4_name(PHP_UV_SOCKADDR_IPV4_P(addr), ip, INET6_ADDRSTRLEN);
2324 uv_ip6_name(PHP_UV_SOCKADDR_IPV6_P(addr), ip, INET6_ADDRSTRLEN);
2331 php_uv_sockaddr_t *addr; local
2339 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (ip_type == PHP_UV_UDP_IPV4) ? uv_sockaddr_ipv4_ce : uv_sock…
2346 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (ip_type == PHP_UV_TCP_IPV4) ? uv_sockaddr_ipv4_ce : uv_sock…
2352 r = uv_tcp_bind((uv_tcp_t*)&uv->uv.tcp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV4(addr), 0);
2355 r = uv_tcp_bind((uv_tcp_t*)&uv->uv.tcp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV6(addr), 0);
2358 …r = uv_udp_bind((uv_udp_t*)&uv->uv.udp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV4(addr), flags…
2361 …r = uv_udp_bind((uv_udp_t*)&uv->uv.udp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV6(addr), flags…
2381 struct sockaddr_storage addr; local
2390 uv_tcp_getsockname(&uv->uv.tcp, (struct sockaddr*)&addr, &addr_len);
2393 uv_tcp_getpeername(&uv->uv.tcp, (struct sockaddr*)&addr, &addr_len);
2396 uv_udp_getsockname(&uv->uv.udp, (struct sockaddr*)&addr, &addr_len);
2403 result = php_uv_address_to_zval((struct sockaddr*)&addr);
2438 php_uv_sockaddr_t *addr; local
2446 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (type == 1) ? uv_sockaddr_ipv4_ce : uv_sockaddr_ipv6_ce, uv_…
2457 if (addr->std.ce == uv_sockaddr_ipv4_ce) {
2458 …uv_udp_send(&w->req, &uv->uv.udp, &w->buf, 1, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV4(addr),…
2460 …uv_udp_send(&w->req, &uv->uv.udp, &w->buf, 1, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV6(addr),…
2467 php_uv_sockaddr_t *addr; local
2475 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (type == PHP_UV_TCP_IPV4) ? uv_sockaddr_ipv4_ce : uv_sockadd…
2486 if (addr->std.ce == uv_sockaddr_ipv4_ce) {
2487 …uv_tcp_connect(req, &uv->uv.tcp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV4(addr), php_uv_tcp_c…
2489 …uv_tcp_connect(req, &uv->uv.tcp, (const struct sockaddr*)&PHP_UV_SOCKADDR_IPV6(addr), php_uv_tcp_…