UDP send/receive using coroutines
/usr/bin/python36 async_udp_example.py
Install nmap-ncat. Open second console.
Run
nc -u -4 -l localhost 11234
to receive randomly generated number strings
Run
nc -u -4 localhost 11235
to start netcat as a client. Then type something and press <enter>. The string should appear on the console where example is running
Pressing <ctrl>+<c> should gracefully stop example execution. The same way you can terminate netcat.