Home
last modified time | relevance | path

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

/libuv/docs/code/udp-dhcp/
H A Dmain.c32 unsigned char ip[4] = {0}; in on_read() local
35 ip[i] = (ipbin >> i*8) & 0xff; in on_read()
36 fprintf(stderr, "Offered IP %d.%d.%d.%d\n", ip[3], ip[2], ip[1], ip[0]); in on_read()
/libuv/src/
H A Duv-common.c254 int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr) { in uv_ip4_addr() argument
261 return uv_inet_pton(AF_INET, ip, &(addr->sin_addr.s_addr)); in uv_ip4_addr()
265 int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr) { in uv_ip6_addr() argument
277 zone_index = strchr(ip, '%'); in uv_ip6_addr()
279 address_part_size = zone_index - ip; in uv_ip6_addr()
283 memcpy(address_part, ip, address_part_size); in uv_ip6_addr()
285 ip = address_part; in uv_ip6_addr()
296 return uv_inet_pton(AF_INET6, ip, &addr->sin6_addr); in uv_ip6_addr()
/libuv/include/
H A Duv.h1758 UV_EXTERN int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr);
1759 UV_EXTERN int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr);
/libuv/
H A DMakefile.am204 test/test-ip-name.c \
H A DCMakeLists.txt578 test/test-ip-name.c
H A DChangeLog900 * zos: improve memory management of ip addresses (Shuowang (Wayne) Zhang)
/libuv/docs/src/
H A Dmisc.rst428 .. c:function:: int uv_ip4_addr(const char* ip, int port, struct sockaddr_in* addr)
432 .. c:function:: int uv_ip6_addr(const char* ip, int port, struct sockaddr_in6* addr)

Completed in 31 milliseconds