INNER CODE UNIT · Python

do_connect

EntySec/Ghost · ghost/core/console.py:67

    def do_connect(self, args: list) -> None:
        """ Connect device.

        :param list args: arguments
        :return None: None
        """

        if len(args) < 2:
            self.print_usage("connect <host>:[port]")
            return

        address = args[1].split(':')

        if len(address) < 2:
            host, port = address[0], 5555
        else:
            host, port = address[0], int(address[1])

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…