SshSession.AcceptTcpIpForward Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
AcceptTcpIpForward(SshForwardingHandle, Int32)
Accepts a forwarded incoming connection.
Declaration
public SshChannel AcceptTcpIpForward(SshForwardingHandle handle, int timeout)
Parameters
Type | Name | Description |
---|---|---|
SshForwardingHandle | handle | Incoming tunnel handle returned by StartTcpIpForward(String, Int32). |
Int32 | timeout | Specifies an amount of time (in milliseconds) to wait for incoming connections. Use -1 to specify an infinite time and 1 to just return as soon as the current queue status is checked, or a higher value to wait for the specified amount of time. |
Returns
Type | Description |
---|---|
SshChannel | SSH channel. |
AcceptTcpIpForward(SshForwardingHandle)
Accepts a forwarded incoming connection. If there is no incoming connection in the queue, waits indefinitely.
Declaration
public SshChannel AcceptTcpIpForward(SshForwardingHandle handle)
Parameters
Type | Name | Description |
---|---|---|
SshForwardingHandle | handle | Incoming tunnel handle returned by StartTcpIpForward(String, Int32). |
Returns
Type | Description |
---|---|
SshChannel | SSH channel. |