import socket


def connect(host, port):
    """
    Connect to server. 
    
    :param host str: client hostname
    :param port int: client port

    :return client socket.socket: connected socket.
    """
    client = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    client.connect((host, port))

    return client