/libuv/test/ |
H A D | test-getsockname.c | 110 int namelen; in on_connection() local 131 namelen = sizeof sockname; in on_connection() 137 namelen = sizeof peername; in on_connection() 150 int r, namelen; in on_connect() local 154 namelen = sizeof sockname; in on_connect() 160 namelen = sizeof peername; in on_connect() 173 int namelen; in tcp_listener() local 197 namelen = sizeof sockname; in tcp_listener() 215 int r, namelen; in tcp_connector() local 245 int namelen; in udp_recv() local [all …]
|
H A D | test-udp-create-socket-early.c | 39 int r, namelen; in TEST_IMPL() local 52 namelen = sizeof sockname; in TEST_IMPL() 53 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL() 63 namelen = sizeof sockname; in TEST_IMPL() 64 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL() 99 int namelen; in TEST_IMPL() local 101 namelen = sizeof sockname; in TEST_IMPL() 102 r = uv_udp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
|
H A D | test-tcp-create-socket-early.c | 99 int r, namelen; in TEST_IMPL() local 112 namelen = sizeof sockname; in TEST_IMPL() 113 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL() 123 namelen = sizeof sockname; in TEST_IMPL() 124 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL() 159 int namelen; in TEST_IMPL() local 161 namelen = sizeof sockname; in TEST_IMPL() 162 r = uv_tcp_getsockname(&client, (struct sockaddr*) &sockname, &namelen); in TEST_IMPL()
|
H A D | test-pipe-getsockname.c | 126 size_t namelen; in TEST_IMPL() local 131 namelen = sizeof(TEST_PIPENAME) - 1; in TEST_IMPL() 150 r = uv_pipe_bind2(&pipe_server, namebuf, namelen, 0); in TEST_IMPL() 188 namelen, in TEST_IMPL()
|
/libuv/src/unix/ |
H A D | pipe.c | 63 size_t namelen, in uv_pipe_bind2() argument 83 if (namelen == 0) in uv_pipe_bind2() 87 if (includes_nul(name, namelen)) in uv_pipe_bind2() 95 if (namelen > sizeof(saddr.sun_path)) in uv_pipe_bind2() 96 namelen = sizeof(saddr.sun_path); in uv_pipe_bind2() 115 memcpy(pipe_fname, name, namelen); in uv_pipe_bind2() 116 pipe_fname[namelen] = '\0'; in uv_pipe_bind2() 256 size_t namelen, in uv_pipe_connect2() argument 271 if (namelen == 0) in uv_pipe_connect2() 274 if (includes_nul(name, namelen)) in uv_pipe_connect2() [all …]
|
H A D | tcp.c | 370 int* namelen) { in uv_tcp_getsockname() argument 378 namelen); in uv_tcp_getsockname() 384 int* namelen) { in uv_tcp_getpeername() argument 392 namelen); in uv_tcp_getpeername()
|
H A D | udp.c | 1349 int* namelen) { in uv_udp_getpeername() argument 1354 namelen); in uv_udp_getpeername() 1359 int* namelen) { in uv_udp_getsockname() argument 1364 namelen); in uv_udp_getsockname()
|
H A D | internal.h | 465 int* namelen);
|
H A D | core.c | 1759 int* namelen) { in uv__getsockpeername() argument 1769 socklen = (socklen_t) *namelen; in uv__getsockpeername() 1774 *namelen = (int) socklen; in uv__getsockpeername()
|
H A D | linux.c | 2007 size_t namelen = strlen(ent->ifa_name); in uv_interface_addresses() local 2009 if (strncmp(address->name, ent->ifa_name, namelen) == 0 && in uv_interface_addresses() 2010 (address->name[namelen] == 0 || address->name[namelen] == ':')) { in uv_interface_addresses()
|
/libuv/docs/src/ |
H A D | pipe.rst | 67 .. c:function:: int uv_pipe_bind2(uv_pipe_t* handle, const char* name, size_t namelen, unsigned int… 74 Supports Linux abstract namespace sockets. ``namelen`` must include 97 …_connect2(uv_connect_t* req, uv_pipe_t* handle, const char* name, size_t namelen, unsigned int fla… 104 Supports Linux abstract namespace sockets. ``namelen`` must include
|
H A D | tcp.rst | 135 .. c:function:: int uv_tcp_getsockname(const uv_tcp_t* handle, struct sockaddr* name, int* namelen) 141 .. c:function:: int uv_tcp_getpeername(const uv_tcp_t* handle, struct sockaddr* name, int* namelen)
|
H A D | udp.rst | 240 .. c:function:: int uv_udp_getpeername(const uv_udp_t* handle, struct sockaddr* name, int* namelen) 252 :param namelen: On input it indicates the data of the `name` field. On 259 .. c:function:: int uv_udp_getsockname(const uv_udp_t* handle, struct sockaddr* name, int* namelen) 270 :param namelen: On input it indicates the data of the `name` field. On
|
/libuv/src/win/ |
H A D | pipe.c | 711 size_t namelen, in uv_pipe_bind2() argument 726 if (namelen == 0) { in uv_pipe_bind2() 730 if (includes_nul(name, namelen)) { in uv_pipe_bind2() 742 name_copy = uv__malloc(namelen + 1); in uv_pipe_bind2() 747 memcpy(name_copy, name, namelen); in uv_pipe_bind2() 748 name_copy[namelen] = '\0'; in uv_pipe_bind2() 879 size_t namelen, in uv_pipe_connect2() argument 905 if (namelen == 0) { in uv_pipe_connect2() 909 if (includes_nul(name, namelen)) { in uv_pipe_connect2() 918 memcpy(name_copy, name, namelen); in uv_pipe_connect2() [all …]
|
H A D | tcp.c | 869 int* namelen) { in uv_tcp_getsockname() argument 874 namelen, in uv_tcp_getsockname() 881 int* namelen) { in uv_tcp_getpeername() argument 886 namelen, in uv_tcp_getpeername() 1575 int namelen; in uv_socketpair() local 1600 namelen = sizeof(name); in uv_socketpair() 1601 if (getsockname(server, (SOCKADDR*) &name, &namelen) != 0) in uv_socketpair()
|
H A D | udp.c | 36 int* namelen) { in uv_udp_getpeername() argument 41 namelen, in uv_udp_getpeername() 48 int* namelen) { in uv_udp_getsockname() argument 53 namelen, in uv_udp_getsockname()
|
H A D | core.c | 759 int* namelen, in uv__getsockpeername() argument 772 result = func((SOCKET) fd, name, namelen); in uv__getsockpeername()
|
H A D | internal.h | 269 int* namelen,
|
/libuv/include/ |
H A D | uv.h | 629 int* namelen); 632 int* namelen); 750 int* namelen); 753 int* namelen); 862 size_t namelen, 871 size_t namelen,
|
/libuv/include/uv/ |
H A D | win.h | 150 int namelen,
|