C# Class Granados.PortForwarding.RemotePortForwardingReply

A reply to the new request on the server-to-client port forwarding.
Show file Open project: poderosaproject/poderosa

Public Properties

Property Type Description
Accepted bool
EventHandler ISSHChannelEventHandler
ReasonCode Reason
ReasonMessage string

Public Methods

Method Description
Accept ( ISSHChannelEventHandler eventHandler ) : RemotePortForwardingReply

Create an instance for accepting the request.

Reject ( Reason reason, string descrition ) : RemotePortForwardingReply

Create an instance for rejecting the request.

Protected Methods

Method Description
RemotePortForwardingReply ( bool accepted, ISSHChannelEventHandler eventHandler, Reason reasonCode, string reasonMessage ) : System

Constructor

Method Details

Accept() public static method

Create an instance for accepting the request.
public static Accept ( ISSHChannelEventHandler eventHandler ) : RemotePortForwardingReply
eventHandler ISSHChannelEventHandler channel event handler for the new channel
return RemotePortForwardingReply

Reject() public static method

Create an instance for rejecting the request.
public static Reject ( Reason reason, string descrition ) : RemotePortForwardingReply
reason Reason reason code
descrition string description
return RemotePortForwardingReply

RemotePortForwardingReply() protected method

Constructor
protected RemotePortForwardingReply ( bool accepted, ISSHChannelEventHandler eventHandler, Reason reasonCode, string reasonMessage ) : System
accepted bool
eventHandler ISSHChannelEventHandler
reasonCode Reason
reasonMessage string
return System

Property Details

Accepted public property

true if the requested port-forwarding has been accepted.
public bool Accepted
return bool

EventHandler public property

An event handler object for the new channel.
public ISSHChannelEventHandler EventHandler
return ISSHChannelEventHandler

ReasonCode public property

Reason code for denaial (SSH2 only)
This field is meaningful when the connection uses SSH2 and the Accept property was false.
public Reason ReasonCode
return Reason

ReasonMessage public property

Reason message for denaial (SSH2 only)
This field is meaningful when the connection uses SSH2 and the Accept property was false.
public string ReasonMessage
return string