import socket


def connect_tcp_socket(host, port):
    """
    Connect to a TCP socket
    """
    socket.setdefaulttimeout(15)
    sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    sock.connect((host, port))
    return sock