连接过滤器(Connection Filter)接口:
///
/// The basic interface of connection filter
///
public interface IConnectionFilter
{
///
/// Initializes the connection filter
///
/// The name.
/// The options.
///
bool Initialize(string name, NameValueCollection options);
///
/// Gets the name of the filter.
///
string Name { get; }
///
/// Whether allows the connect according the remote endpoint
///
/// The remote address.
///
bool AllowConnect(IPEndPoint remoteAddress);
}
最新评论