def setup_client(self, host, port):
        """Sets up the socket client.

        Args:
            host: String of the host name.
            port: Int of the port name.
        """
        try:
            self.client_socket = socket.socket(socket.AF_INET,
                                               socket.SOCK_STREAM)
            self.client_socket.connect((host, port))

        except __HOLE__:
            self.log.error('Could not connect to remote socket server. %s:%s',
                           host, port)
dataset/ETHPy150Open missionpinball/mpf/mpf/plugins/socket_events.py/SocketClient.setup_client