Handles a listening socket and automatically accepts incoming connections. It will create a bjsonrpc.connection.Connection for each socket connected to it.
Use the Server.serve() method to start accepting connections.
Parameters:
Sets or retrieves the internal debug_dispatch value.
When is set to true, each new connection will have it set to true, and every error produced by client connections will be printed to stdout.
By default is set to False
Sets or retrieves the internal debug_socket value.
When is set to true, each new connection will have it set to true, and every data sent or received by the socket will be printed to stdout.
By default is set to False
Starts the forever-serving loop. This function only exits when an Exception is raised inside, by unexpected error, KeyboardInterrput, etc.
It is coded using select.select function, and it is capable to serve to an unlimited amount of connections at same time without using threading.
Tells the server that it should stop. Useful in multithread apps. Once stopped, call again to serve() to start the server loop again.