过滤器系列,SuperSocket系列文档(13) 连接过滤器

SuperSocket中连接过滤器(Connection Filter)是用与对客户端连接进行过滤的接口。通过连接过滤器, 你可以允许或者禁止指定来源的客户端对服务器进行连接。
连接过滤器(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);
}
Tags:  tf系列过滤器 油水过滤器系列 过滤器螺纹连接 过滤器连接 过滤器系列

延伸阅读

最新评论

发表评论