Home
last modified time | relevance | path

Searched refs:accept_sock (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/net/socket/reuseaddr_reuseport/src/
Dmain.c447 int accept_sock = -1; in test_reuseaddr_tcp_tcp_time_wait_common() local
468 accept_sock = test_accept(server_sock, &accept_addr, &accept_addrlen); in test_reuseaddr_tcp_tcp_time_wait_common()
474 zsock_close(accept_sock); in test_reuseaddr_tcp_tcp_time_wait_common()
757 int accept_sock = 1; in test_reuseport_udp_server_client_common() local
796 accept_sock = zsock_socket(family, SOCK_DGRAM, IPPROTO_UDP); in test_reuseport_udp_server_client_common()
797 zassert_true(accept_sock >= 0, "socket open failed"); in test_reuseport_udp_server_client_common()
801 test_enable_reuseport(accept_sock); in test_reuseport_udp_server_client_common()
807 test_bind_success(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
811 test_bind_fail(accept_sock, (struct sockaddr *) &server_addr, in test_reuseport_udp_server_client_common()
816 test_connect_success(accept_sock, &accept_addr, sizeof(accept_addr)); in test_reuseport_udp_server_client_common()
[all …]
/Zephyr-latest/drivers/net/
Dnsos_sockets.c739 struct nsos_socket *accept_sock = obj; in nsos_accept() local
748 ret = nsos_poll_if_blocking(accept_sock, ZSOCK_POLLIN, in nsos_accept()
749 accept_sock->recv_timeout, 0); in nsos_accept()
754 ret = nsos_adapt_accept(accept_sock->poll.mid.fd, addr_mid, &addrlen_mid); in nsos_accept()