21 #include "../test_params.h" 22 #include "mbed_trace.h" 26 #define TRACE_GROUP "GRNT" 29 void drop_bad_packets(
UDPSocket &sock,
int orig_timeout);
30 nsapi_version_t get_ip_version();
32 void fill_tx_buffer_ascii(
char *buff,
size_t len);
34 #if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED 36 int fetch_stats(
void);
42 microseconds split2half_rmng_udp_test_time();
45 #ifdef MBED_GREENTEA_TEST_UDPSOCKET_TIMEOUT_S 46 static constexpr seconds TESTS_TIMEOUT(MBED_GREENTEA_TEST_UDPSOCKET_TIMEOUT_S);
50 #if MBED_CONF_TARGET_NETWORK_DEFAULT_INTERFACE_TYPE == MESH && MBED_CONF_NSAPI_DEFAULT_MESH_TYPE == WISUN 51 static constexpr seconds TESTS_TIMEOUT = 25min;
53 static constexpr seconds TESTS_TIMEOUT = 20min;
57 static const int MAX_SEND_SIZE_IPV4 = 536;
58 static const int MAX_SEND_SIZE_IPV6 = 1220;
64 void UDPSOCKET_ECHOTEST();
65 void UDPSOCKET_ECHOTEST_CONNECT_SEND_RECV();
66 void UDPSOCKET_ECHOTEST_NONBLOCK();
67 void UDPSOCKET_ECHOTEST_NONBLOCK_CONNECT_SEND_RECV();
68 void UDPSOCKET_ECHOTEST_BURST();
69 void UDPSOCKET_ECHOTEST_BURST_NONBLOCK();
70 void UDPSOCKET_OPEN_CLOSE_REPEAT();
71 void UDPSOCKET_OPEN_DESTRUCT();
72 void UDPSOCKET_OPEN_LIMIT();
73 void UDPSOCKET_OPEN_TWICE();
74 void UDPSOCKET_BIND_PORT();
75 void UDPSOCKET_BIND_PORT_FAIL();
76 void UDPSOCKET_BIND_ADDRESS_PORT();
77 void UDPSOCKET_BIND_ADDRESS_NULL();
78 void UDPSOCKET_BIND_ADDRESS_INVALID();
79 void UDPSOCKET_BIND_ADDRESS();
80 void UDPSOCKET_BIND_WRONG_TYPE();
81 void UDPSOCKET_BIND_UNOPENED();
82 void UDPSOCKET_RECV_TIMEOUT();
83 void UDPSOCKET_SENDTO_INVALID();
84 void UDPSOCKET_SENDTO_REPEAT();
85 void UDPSOCKET_SENDTO_TIMEOUT();
UDP socket implementation.
signed int nsapi_error_t
Type used to represent error codes.
Common interface that is shared between network devices.
Structure to parse socket statistics.