using System; using System.Collections.Specialized; using System.Configuration.Provider; using System.Net; using SuperSocket.SocketBase.Config; namespace SuperSocket.SocketBase { /// /// The basic interface of connection filter /// public interface IConnectionFilter { /// /// Initializes the connection filter /// /// The name. /// The app server. /// bool Initialize(string name, IAppServer appServer); /// /// Gets the name of the filter. /// string Name { get; } /// /// Whether allows the connect according the remote endpoint /// /// The remote address. /// bool AllowConnect(IPEndPoint remoteAddress); } }