May 2019
Intermediate to advanced
542 pages
13h 37m
English
To test this chat system, you'll need two computers with Python and PyQt5 installed running on the same local area network. You may need to disable the systems' firewalls or open UPD port 7777 before proceeding.
Once you've done that, copy udp_chat.py to both machines and launch it. Type a message on one machine; it should show up in the chat window on both machines, looking something like this:

Notice that the systems also pick up and react to their own broadcast messages, so we don't need to worry about echoing our own messages in the text area.
UDP is certainly simple to work with, but it has many limitations. For example, ...
Read now
Unlock full access