public static function createForward4($sourceAddress, $sourcePort, $targetAddress, $targetPort, $version = 2) {
        $result = new static();
        $result->version = $version;
        $result->sourceAddress = $sourceAddress;
        $result->targetPort = $targetPort;
        $result->targetAddress = $targetAddress;
        $result->sourcePort = $sourcePort;
        return $result;
    }
public static function createForward4($sourceAddress, $sourcePort, $targetAddress, $targetPort, $version = 2) {
        $result = new static();
        $result->version = $version;
        $result->sourceAddress = $sourceAddress;
        $result->targetPort = $targetPort;
        $result->targetAddress = $targetAddress;
        $result->sourcePort = $sourcePort;
        return $result;
    }
public static function createForward4 ( $ sourceAddress , $ sourcePort , $ targetAddress , $ targetPort , $ version = 2 ) { $ result = new static ( ) ; $ result -> version = $ version ; $ result -> sourceAddress = $ sourceAddress ; $ result -> targetPort = $ targetPort ; $ result -> targetAddress = $ targetAddress ; $ result -> sourcePort = $ sourcePort ; return $ result ; }
This function creates the forwarding header. This header should be sent over the upstream connection as soon as
it is established.
@param string $sourceAddress
@param int $sourcePort
@param string $targetAddress
@param int $targetPort
@return self
@throws \Exception
This function creates the forwarding header . This header should be sent over the upstream connection as soon as it is established .