connect()
Open a connection to a remote host.
Usage
connect(
host,
port=8080,
)Parameters
host: str-
The hostname or IP address.
port: int = 8080-
The port number.
Returns
object-
A connection handle.
See Also
- disconnect(): Close an open connection.
- send(): Transmit data over a connection.