public class

SocketForwardingConnectListener

extends Object
implements ConnectListener
java.lang.Object
   ↳ net.schmizz.sshj.connection.channel.forwarded.SocketForwardingConnectListener

Class Overview

A ConnectListener that forwards what is received over the channel to a socket and vice-versa.

Summary

Fields
protected final SocketAddress addr
protected final Logger log
Public Constructors
SocketForwardingConnectListener(SocketAddress addr)
Create with a SocketAddress this listener will forward to.
Public Methods
void gotConnect(Channel.Forwarded chan)
On connect, confirm the channel and start forwarding.
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.connection.channel.forwarded.ConnectListener

Fields

protected final SocketAddress addr

protected final Logger log

Public Constructors

public SocketForwardingConnectListener (SocketAddress addr)

Create with a SocketAddress this listener will forward to.

Parameters
addr

Public Methods

public void gotConnect (Channel.Forwarded chan)

On connect, confirm the channel and start forwarding.

Parameters
chan The forwarded channel
Throws
IOException