May 2019
Intermediate to advanced
542 pages
13h 37m
English
TCP is a stateful transmission protocol, meaning that a connection is established and maintained until the transmission is complete. TCP is also primarily a one-to-one connection between hosts, which we generally implement using a client-server design. Our TCP chat application will make a direct connection between two network hosts and will contain both a client component that will connect to other instances of the app and a server component that will handle incoming client connections.
In the tcp_chat.py file you created earlier, start a TCP chat interface class like so:
class TcpChatInterface(qtc.QObject): port = 7777 delimiter = '||' received = qtc.pyqtSignal(str, str) error = qtc.pyqtSignal(str)
So far, this ...
Read now
Unlock full access