class SSH2::Listener

Overview

A server-side listener for reverse (remote) port forwarding, created by Session#forward_listen. Inbound connections are queued until #accepted.

Defined in:

listener.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : SSH2::Session, handle : LibSSH2::Listener, bound_port : Int32) #

[View source]

Instance Method Detail

def accept #

Accept the next queued inbound connection, returning it as a Channel.


[View source]
def bound_port : Int32 #

[View source]
def cancel #

Stop listening and tell the remote host to stop forwarding to this port.


[View source]
def canceled? : Bool #

[View source]
def finalize #

[View source]
def session : Session #

[View source]
def to_unsafe : Pointer(Void) #

[View source]