Bases: SocketServer.ThreadingMixIn, SocketServer.TCPServer
This class allow to link the class object with an handle function. This handle function is define in the class Connectionprocessing. At each connection with the server, this class create thread and run the same function written in the function handle in the Connectionprocessing.
>>> addrTCP=('',port) >>> server = ServerThread(addrTCP, Connectionprocessing) >>> SRV_TCP = threading.Thread(target=server.serve_forever) >>> SRV_TCP.allow_reuse_address=True >>> SRV_TCP.deamon=False >>> SRV_TCP.start()
At this moment your server is on idle of connection.
This class allow to the connection with the class ServerThread. It define the handle function run by each thread created by each connection with the server.
Function handle run by each thread or each connection
This function allow to determinate the connection information as the interval or duartion or ID for examples.
And, it’s use to run the function for calculate the bandwidth in mode upload Or / And in mode Download.
This function calculate the bandwidth in download between the client and this server.
This function calculate the bandwidth in upload between the client and this server.