Lines Matching refs:rx_buf
106 char rx_buf[30] = {0}; in test_recv() local
108 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), flags); in test_recv()
112 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recv()
123 char rx_buf[30] = {0}; in test_recvfrom() local
125 recved = zsock_recvfrom(sock, rx_buf, sizeof(rx_buf), flags, addr, addrlen); in test_recvfrom()
129 zassert_equal(strncmp(rx_buf, TEST_STR_SMALL, strlen(TEST_STR_SMALL)), in test_recvfrom()
168 char rx_buf[1]; in test_eof() local
172 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
176 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
181 recved = zsock_recv(sock, rx_buf, sizeof(rx_buf), 0); in test_eof()
514 uint8_t rx_buf[10]; in ZTEST() local
547 recved = zsock_recv(new_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
556 recved = zsock_recv(c_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
825 char rx_buf[1] = {0}; in _test_recv_enotconn() local
831 res = zsock_recv(c_sock, rx_buf, sizeof(rx_buf), 0); in _test_recv_enotconn()
837 res = zsock_recv(s_sock, rx_buf, sizeof(rx_buf), 0); in _test_recv_enotconn()
1512 char rx_buf[30] = {0}; in ZTEST() local
1540 recved = zsock_recv(c_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
1549 recved = zsock_recv(new_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
1579 char rx_buf[30] = {0}; in ZTEST() local
1607 recved = zsock_recv(c_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
1616 recved = zsock_recv(new_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
1790 uint8_t rx_buf[sizeof(TEST_STR_SMALL) - 1] = { 0 }; in ZTEST() local
1812 test_data.retries = sizeof(rx_buf); in ZTEST()
1818 ret = zsock_recv(new_sock, rx_buf, sizeof(rx_buf), ZSOCK_MSG_WAITALL); in ZTEST()
1819 zassert_equal(ret, sizeof(rx_buf), "Invalid length received"); in ZTEST()
1820 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf), in ZTEST()
1831 memset(rx_buf, 0, sizeof(rx_buf)); in ZTEST()
1833 test_data.retries = sizeof(rx_buf) - 1; in ZTEST()
1839 ret = zsock_recv(new_sock, rx_buf, sizeof(rx_buf) - 1, ZSOCK_MSG_WAITALL); in ZTEST()
1843 zassert_equal(ret, sizeof(rx_buf) - 1, "Invalid length received"); in ZTEST()
1844 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf) - 1, in ZTEST()
1868 uint8_t rx_buf[sizeof(TEST_STR_SMALL) - 1] = { 0 }; in ZTEST() local
1889 test_data.retries = sizeof(rx_buf); in ZTEST()
1895 ret = zsock_recv(new_sock, rx_buf, sizeof(rx_buf), ZSOCK_MSG_WAITALL); in ZTEST()
1896 zassert_equal(ret, sizeof(rx_buf), "Invalid length received"); in ZTEST()
1897 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf), in ZTEST()
1908 memset(rx_buf, 0, sizeof(rx_buf)); in ZTEST()
1910 test_data.retries = sizeof(rx_buf) - 1; in ZTEST()
1916 ret = zsock_recv(new_sock, rx_buf, sizeof(rx_buf) - 1, ZSOCK_MSG_WAITALL); in ZTEST()
1917 zassert_equal(ret, sizeof(rx_buf) - 1, "Invalid length received"); in ZTEST()
1918 zassert_mem_equal(rx_buf, TEST_STR_SMALL, sizeof(rx_buf) - 1, in ZTEST()
2030 char rx_buf[1]; in ZTEST() local
2052 ret = zsock_recv(c_sock, rx_buf, sizeof(rx_buf), 0); in ZTEST()
2422 uint8_t rx_buf; in ZTEST() local
2473 ret = zsock_recv(c_sock, &rx_buf, sizeof(rx_buf), 0); in ZTEST()
2478 ret = zsock_recv(new_sock, &rx_buf, sizeof(rx_buf), 0); in ZTEST()