import socket


def rotctld_connect(rotctld_host, rotctld_port):
    """
    Connect to rotctld server.
    """
    rotctl = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    rotctl.connect((rotctld_host, rotctld_port))
    return rotctl