edgeport - v1.0.3
    Preparing search index...

    Function parseEpsv

    • Parses the port out of an EPSV (RFC 2428) 229 reply.

      The reply carries (|||PORT|) where the address family and host fields are empty and the port sits between the last two | delimiters; the host is reused from the control channel.

      Parameters

      • line: string

        The full reply text, e.g. 229 Entering Extended Passive Mode (|||49152|).

      Returns number

      The data port to dial.

      If no (|||PORT|) group is present.

      1.0.0

      parseEpsv('229 Entering Extended Passive Mode (|||49152|)'); // 49152