Lines Matching refs:sockname
109 struct sockaddr sockname, peername; in on_connection() local
131 namelen = sizeof sockname; in on_connection()
132 r = uv_tcp_getsockname(handle, &sockname, &namelen); in on_connection()
134 check_sockname(&sockname, "127.0.0.1", server_port, "accepted socket"); in on_connection()
149 struct sockaddr sockname, peername; in on_connect() local
154 namelen = sizeof sockname; in on_connect()
155 r = uv_tcp_getsockname((uv_tcp_t*) req->handle, &sockname, &namelen); in on_connect()
157 check_sockname(&sockname, "127.0.0.1", 0, "connected socket"); in on_connect()
172 struct sockaddr sockname, peername; in tcp_listener() local
196 memset(&sockname, -1, sizeof sockname); in tcp_listener()
197 namelen = sizeof sockname; in tcp_listener()
198 r = uv_tcp_getsockname(&tcpServer, &sockname, &namelen); in tcp_listener()
200 check_sockname(&sockname, "0.0.0.0", server_port, "server socket"); in tcp_listener()
203 namelen = sizeof sockname; in tcp_listener()
214 struct sockaddr sockname; in tcp_connector() local
230 namelen = sizeof sockname; in tcp_connector()
231 r = uv_tcp_getsockname(&tcp, &sockname, &namelen); in tcp_connector()
233 ASSERT_EQ(sockname.sa_family, AF_INET); in tcp_connector()
234 connect_port = ntohs(((struct sockaddr_in*) &sockname)->sin_port); in tcp_connector()
244 struct sockaddr sockname; in udp_recv() local
255 memset(&sockname, -1, sizeof sockname); in udp_recv()
256 namelen = sizeof(sockname); in udp_recv()
257 r = uv_udp_getsockname(&udp, &sockname, &namelen); in udp_recv()
259 check_sockname(&sockname, "0.0.0.0", 0, "udp receiving socket"); in udp_recv()
274 struct sockaddr sockname; in udp_listener() local
292 memset(&sockname, -1, sizeof sockname); in udp_listener()
293 namelen = sizeof sockname; in udp_listener()
294 r = uv_udp_getsockname(&udpServer, &sockname, &namelen); in udp_listener()
296 check_sockname(&sockname, "0.0.0.0", server_port, "udp listener socket"); in udp_listener()