Lines Matching refs:sock_s
1119 void test_msg_trunc(int sock_c, int sock_s, struct sockaddr *addr_c, in test_msg_trunc() argument
1126 rv = zsock_bind(sock_s, addr_s, addrlen_s); in test_msg_trunc()
1141 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC); in test_msg_trunc()
1147 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_DONTWAIT); in test_msg_trunc()
1157 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC | ZSOCK_MSG_PEEK); in test_msg_trunc()
1161 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_TRUNC); in test_msg_trunc()
1169 rv = zsock_close(sock_s); in test_msg_trunc()
1203 static void test_dgram_overflow(int sock_c, int sock_s, in test_dgram_overflow() argument
1210 rv = zsock_bind(sock_s, addr_s, addrlen_s); in test_dgram_overflow()
1225 rv = zsock_close(sock_s); in test_dgram_overflow()
1229 static void test_dgram_fragmented(int sock_c, int sock_s, in test_dgram_fragmented() argument
1236 rv = zsock_bind(sock_s, addr_s, addrlen_s); in test_dgram_fragmented()
1249 rv = zsock_recv(sock_s, rx_buf, sizeof(rx_buf), 0); in test_dgram_fragmented()
1255 rv = zsock_close(sock_s); in test_dgram_fragmented()
1942 static void test_check_ttl(int sock_c, int sock_s, int sock_p, in test_check_ttl() argument
1988 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_RCVTIMEO, in test_check_ttl()
1997 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), ZSOCK_MSG_DONTWAIT); in test_check_ttl()
2093 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), 0); in test_check_ttl()
2137 ret = zsock_recv(sock_s, &rx_buf, sizeof(rx_buf), 0); in test_check_ttl()
2144 ret = zsock_close(sock_s); in test_check_ttl()