Implementation einer einfachen Client-Server Architektur mit Hilfe von Websockets
EDIT1: Anstatt wie ursprünglich geplant Websockets bzw. SocketIO für die Netzwerkkommunikation zu verwenden basiert der aktuelle Prototyp auf sockets und threads.
Server:
Verbindung mit unbegrenzt vielen Clients möglich.
Jede Connection wird in einem eigenen Thread ausgeführt
Client:
senden und empfangen mit multiplex möglich.
senden und empfangen wird in separaten threads ausgeführt und die Daten in eine jeweilige Queue geschrieben (Nach aktuellem Wissenstand sind Queues in python thread safe). Durch die Verwendung von Queues soll die Ausführungszeit eines Datenempfangs/-Versands möglichst kurz sein und so die shared ressource, die Connection schnell wieder freigeben.
Implementation einer einfachen Client-Server Architektur mit Hilfe von Websockets
EDIT1: Anstatt wie ursprünglich geplant Websockets bzw. SocketIO für die Netzwerkkommunikation zu verwenden basiert der aktuelle Prototyp auf sockets und threads.
Server:
Client: