import socket


def connect(host, port):
    """
    create connection
    :param host: server address
    :param port:  server port
    :return: socket fd
    """
    _sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    _sock.connect((host, port))
    return _sock