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>
14 lines
253 B
Text
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'
|