Home
last modified time | relevance | path

Searched refs:namelen (Results 1 – 20 of 20) sorted by relevance

/libuv/test/
H A Dtest-getsockname.c110 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 Dtest-udp-create-socket-early.c39 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 Dtest-tcp-create-socket-early.c99 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 Dtest-pipe-getsockname.c126 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 Dpipe.c63 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 Dtcp.c370 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 Dudp.c1349 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 Dinternal.h465 int* namelen);
H A Dcore.c1759 int* namelen) { in uv__getsockpeername() argument
1769 socklen = (socklen_t) *namelen; in uv__getsockpeername()
1774 *namelen = (int) socklen; in uv__getsockpeername()
H A Dlinux.c2007 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 Dpipe.rst67 .. 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 Dtcp.rst135 .. 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 Dudp.rst240 .. 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 Dpipe.c711 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 Dtcp.c869 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 Dudp.c36 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 Dcore.c759 int* namelen, in uv__getsockpeername() argument
772 result = func((SOCKET) fd, name, namelen); in uv__getsockpeername()
H A Dinternal.h269 int* namelen,
/libuv/include/
H A Duv.h629 int* namelen);
632 int* namelen);
750 int* namelen);
753 int* namelen);
862 size_t namelen,
871 size_t namelen,
/libuv/include/uv/
H A Dwin.h150 int namelen,

Completed in 70 milliseconds