Server - Scauting-Burgum/ScautNet-python GitHub Wiki
A class to ease the creation of a server.
Methods
__init__
Creates a server with the provided hostname and port.
Arguments
hostname
; The hostname on which to host the server.port
; The port on which to host the server.
get_pipeline
Creates a pipeline with the provided socket.
start
Starts the server.
kill
Kills the server and it's threads.
Arguments
socket
; The socket from which to create a pipeline.
Properties
socket
The server's socket.
alive
Returns True
if the server is running and kill
hasn't been called.
pipelines
The pipelines that have been created by the server.
pipelines_lock
A lock that should be acquired before interacting with pipelines
.
Implementation
Check the readme.