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 TypeMethodDescriptionvoidgotConnect(Channel.Forwarded chan) On connect, confirm the channel and start forwarding.
-
Field Details
-
addr
-
-
Constructor Details
-
SocketForwardingConnectListener
Create with aSocketAddressthis listener will forward to.
-
-
Method Details
-
gotConnect
On connect, confirm the channel and start forwarding.- Specified by:
gotConnectin interfaceConnectListener- Parameters:
chan- the forwarded channel- Throws:
IOException- if there is a problem handling the channel
-