from .connection import Connection
import socket


class ClientSocket:
    def __init__(self) -> None:
        self.__socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

    def connect(self, host: str, port: int) -> Connection:
        self.__socket.connect((host, port))

        return Connection(self.__socket)

[((7, 24, 7, 73), 'socket.socket', 'socket.socket', ({(7, 38, 7, 52): 'socket.AF_INET', (7, 54, 7, 72): 'socket.SOCK_STREAM'}, {}), '(socket.AF_INET, socket.SOCK_STREAM)', False, 'import socket\n')]