miniproto.connection.transport.ConnectionEndpoint
miniproto.connection.transport.ConnectionEndpoint
Section titled “miniproto.connection.transport.ConnectionEndpoint”ConnectionEndpoint(host: str, port: int) -> NoneValidated TCP destination for an MTProto transport.
Parameters:
- host (
str) – DNS name or IP address to connect to; it must not be empty. - port (
int) – TCP port in the inclusive range 1 through 65535.
Raises:
ValueError– If either endpoint component is invalid.