class
SSH2::Listener
- SSH2::Listener
- Reference
- Object
Overview
A server-side listener for reverse (remote) port forwarding, created by
Session#forward_listen. Inbound connections are queued until #accepted.
Defined in:
listener.crConstructors
Instance Method Summary
-
#accept
Accept the next queued inbound connection, returning it as a
Channel. - #bound_port : Int32
-
#cancel
Stop listening and tell the remote host to stop forwarding to this port.
- #canceled? : Bool
- #finalize
- #session : Session
- #to_unsafe : Pointer(Void)
Constructor Detail
def self.new(session : SSH2::Session, handle : LibSSH2::Listener, bound_port : Int32)
#