def parse_remote_port(self, reply):
        """
        Parses a remote port from a Rendezvous Server's
        response.
        """

        remote_port = re.findall("^REMOTE (TCP|UDP) ([0-9]+)$", reply)
        if not len(remote_port):
            remote_port = 0
        else:
            remote_port = int(remote_port[0][1])
            if remote_port < 1 or remote_port > 65535:
                remote_port = 0
        return remote_port
def parse_remote_port ( self , reply ) : remote_port = re . findall ( "^REMOTE (TCP|UDP) ([0-9]+)$" , reply ) if not len ( remote_port ) : remote_port = 0 else : remote_port = int ( remote_port [ 0 ] [ 1 ] ) if remote_port < 1 or remote_port > 65535 : remote_port = 0 return remote_port
Parses a remote port from a Rendezvous Server's
        response.