Searched refs:udpServer (Results 1 – 2 of 2) sorted by relevance
/third_party/libuv/test/ |
D | test-getsockname.c | 41 static uv_udp_t udpServer; variable 279 r = uv_udp_init(loop, &udpServer); in udp_listener() 285 r = uv_udp_bind(&udpServer, (const struct sockaddr*) &addr, 0); in udp_listener() 293 r = uv_udp_getsockname(&udpServer, &sockname, &namelen); in udp_listener() 298 r = uv_udp_recv_start(&udpServer, alloc, udp_recv); in udp_listener() 357 ASSERT(udpServer.send_queue_size == 0); in TEST_IMPL()
|
D | echo-server.c | 37 static uv_udp_t udpServer; variable 323 server = (uv_handle_t*)&udpServer; in udp4_echo_start() 326 r = uv_udp_init(loop, &udpServer); in udp4_echo_start() 332 r = uv_udp_bind(&udpServer, (const struct sockaddr*) &addr, 0); in udp4_echo_start() 338 r = uv_udp_recv_start(&udpServer, slab_alloc, on_recv); in udp4_echo_start()
|