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.
example
>>> 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.
Bases: SocketServer.BaseRequestHandler
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.
This function calculate the bandwidth in download between the client and this server.
Argument : |
|
---|
This function calculate the bandwidth in upload between the client and this server.
Argument : |
|
---|