Click or drag to resize

IListener Interface

Provides an interface to integrate into ProxyServer.

Namespace:  FastProxy
Assembly:  FastProxy (in FastProxy.dll) Version: 0.2.0.0
Syntax
C#
public interface IListener : IDisposable

The IListener type exposes the following members.

Methods
  NameDescription
Public methodClosed
Called when the connection has been closed.
Public methodDataReceived
Called when bytes have been received from either the server or the client.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Top
Remarks

The IListener interface allows you to integrate with ProxyServer.

The DataReceived(Int32, Direction) method is called whenever data is received from the server of the client. The return value of this method can be used to force a connect to be closed. This feature is e.g. used in ChaosConnector to randomly close connections.

Implementations of this interface are provided to ProxyServer through an IConnector implementation. This allows you to have different IListener instances per connection.

See Also