메소드 | 설명 | |
---|---|---|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
|
ForwardedPortLocal ( string boundHost, string host, uint port ) : System |
Initializes a new instance of the ForwardedPortLocal class.
|
|
ForwardedPortLocal ( string boundHost, uint boundPort, string host, uint port ) : System |
Initializes a new instance of the ForwardedPortLocal class.
|
|
ForwardedPortLocal ( uint boundPort, string host, uint port ) : System |
Initializes a new instance of the ForwardedPortLocal class.
|
메소드 | 설명 | |
---|---|---|
CheckDisposed ( ) : void |
Ensures the current instance is not disposed.
|
|
Dispose ( bool disposing ) : void |
Releases unmanaged and - optionally - managed resources
|
|
StartPort ( ) : void |
Starts local port forwarding.
|
|
StopPort ( System.TimeSpan timeout ) : void |
Stops local port forwarding, and waits for the specified timeout until all pending requests are processed.
|
메소드 | 설명 | |
---|---|---|
AcceptCompleted ( object sender, SocketAsyncEventArgs e ) : void | ||
Channel_Exception ( object sender, System.ExceptionEventArgs e ) : void | ||
CloseClientSocket ( Socket clientSocket ) : void | ||
InitializePendingChannelCountdown ( ) : void |
Initializes the CountdownEvent. When the port is started for the first time, a CountdownEvent is created with an initial count of On subsequent (re)starts, we'll dispose the current CountdownEvent and create a new one with initial count of |
|
InternalDispose ( bool disposing ) : void | ||
InternalStart ( ) : void | ||
InternalStop ( System.TimeSpan timeout ) : void | ||
ProcessAccept ( Socket clientSocket ) : void | ||
Session_Disconnected ( object sender, |
||
Session_ErrorOccured ( object sender, System.ExceptionEventArgs e ) : void | ||
StartAccept ( SocketAsyncEventArgs e ) : void | ||
StopListener ( ) : void |
Interrupts the listener, and waits for the listener loop to finish. When the forwarded port is stopped, then any further action is skipped. |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
리턴 | void |
public ForwardedPortLocal ( string boundHost, string host, uint port ) : System | ||
boundHost | string | The bound host. |
host | string | The host. |
port | uint | The port. |
리턴 | System |
public ForwardedPortLocal ( string boundHost, uint boundPort, string host, uint port ) : System | ||
boundHost | string | The bound host. |
boundPort | uint | The bound port. |
host | string | The host. |
port | uint | The port. |
리턴 | System |
public ForwardedPortLocal ( uint boundPort, string host, uint port ) : System | ||
boundPort | uint | The bound port. |
host | string | The host. |
port | uint | The port. |
리턴 | System |
protected StopPort ( System.TimeSpan timeout ) : void | ||
timeout | System.TimeSpan | The maximum amount of time to wait for pending requests to finish processing. |
리턴 | void |