connect()
Connect to a remote host.
Usage
connect(
host,
port=8080,
)Parameters
host: str-
The hostname or IP address to connect to.
port: int = 8080-
The port number, by default 8080.
Returns
dict-
A dictionary with connection details.
Examples
>>> connect("localhost")
{'host': 'localhost', 'port': 8080, 'status': 'connected'}