pxblat.stop_server(host: str, port: int)[source]

Stop a running server.

Parameters:
host : str

The hostname or IP address of the server to stop.

port : int

The port number to use when attempting to connect to the server.

Returns:

None

This function stops a running server by sending a “quit” message to the server. The function takes the hostname and port number of the server as arguments. The function returns None.

Example

>>> stop_server("localhost", 8080)