Documentation Language: Swift

Structure

PortForwardingConfiguration

Local forwarding settings used to bind a listener and open a direct TCP/IP channel.

struct PortForwardingConfiguration

Overview

PortForwardingConfiguration describes the local address to bind and the remote host and port that should receive forwarded traffic once the SSH session opens the corresponding direct TCP/IP channel.

Topics

Initializers

?
init(bindHost:bindPort:targetHost:targetPort:)

Create a local forwarding configuration.

Instance Properties

V
bindHost

Local host name or address to bind for the forwarding listener.

V
bindPort

Local TCP port to bind for the forwarding listener.

V
targetHost

Remote host that should receive forwarded traffic.

V
targetPort

Remote TCP port that should receive forwarded traffic.

Type Methods

?
parseListen(_:)

Parse a forwarding rule in [bind_address:]port:host:hostport form.

Relationships

Conforms To

See Also

Port Forwarding

F
startPortForwarding(_:)

Start a local forwarding server for the supplied configuration.

A
Forwarding Traffic

Expose a local listening socket and tunnel accepted connections through the SSH transport.