circuitpython/tests/multi_net/tls_dtls_server_client.py.exp
Damien George 8987b39e0b tests/multi_net: Add test for DTLS server and client.
This adds a multi-test for DTLS server and client behaviour.  It works on
all ports that enable this feature (eg unix, esp32, rp2, stm32), but
bare-metal ports that use lwIP are not reliable as the DTLS server because
the lwIP bindings only support queuing one UDP packet at a time (that needs
to be fixed).

Also, to properly implement a DTLS server sockets need to support
`socket.recvfrom(n, MSG_PEEK)`.  That can be implemented in the future.

Signed-off-by: Damien George <damien@micropython.org>
2025-02-14 12:56:47 +11:00

14 lines
253 B
Text

--- instance0 ---
incoming connection b'X'
wrap socket
b'client to server'
b'client to server'
b'client to server'
b'client to server'
--- instance1 ---
connect
wrap socket
b'server to client'
b'server to client'
b'server to client'
b'server to client'