Class SocketForwardingConnectListener
java.lang.Object
net.schmizz.sshj.connection.channel.forwarded.SocketForwardingConnectListener
- All Implemented Interfaces:
ConnectListener
A
ConnectListener
that forwards what is received over the channel to a socket and vice-versa.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
gotConnect
(Channel.Forwarded chan) On connect, confirm the channel and start forwarding.
-
Field Details
-
addr
-
-
Constructor Details
-
SocketForwardingConnectListener
Create with aSocketAddress
this listener will forward to.
-
-
Method Details
-
gotConnect
On connect, confirm the channel and start forwarding.- Specified by:
gotConnect
in interfaceConnectListener
- Parameters:
chan
- the forwarded channel- Throws:
IOException
- if there is a problem handling the channel
-