Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Server
Returned by threading.Serve(); represents a running service. It can be passed to other threads as an argument of the thread function, where the service can be inspected or closed.
In this sectionRead the whole section
| Name | Description |
| Server.addr | Returns the address and port the service actually listens on. |
| Server.close | Stops accepting new connections; handlers already running finish normally (graceful shutdown). |
| Server.stop | Closes the service (as close()) and then terminates every handler thread that is still running. |
| Server.join | Waits until the service is closed and no handler is running. |
| Server.pending | Returns the number of handlers currently running, i.e. |