Class RestrictByIpConnectionListener
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FixAntenna.FixEngine.Transport.Server.Firewall
Assembly: FixAntenna.Core.dll
Syntax
public class RestrictByIpConnectionListener : PassthroughConnectionListener, IConnectionListener
Constructors
RestrictByIpConnectionListener(IConnectionListener)
Declaration
public RestrictByIpConnectionListener(IConnectionListener listener)
Parameters
Type | Name | Description |
---|---|---|
IConnectionListener | listener |
RestrictByIpConnectionListener(IConnectionListener, ICollection<String>)
Declaration
public RestrictByIpConnectionListener(IConnectionListener listener, ICollection<string> allowedIPs)
Parameters
Type | Name | Description |
---|---|---|
IConnectionListener | listener | |
System.Collections.Generic.ICollection<System.String> | allowedIPs |
Methods
Allow(String)
Declaration
public virtual void Allow(string ip)
Parameters
Type | Name | Description |
---|---|---|
System.String | ip |
OnConnect(ITransport)
Invoked when a new connection occurred.
Declaration
public override void OnConnect(ITransport transport)
Parameters
Type | Name | Description |
---|---|---|
ITransport | transport | the transport |
Overrides
Restrict(String)
Declaration
public virtual void Restrict(string ip)
Parameters
Type | Name | Description |
---|---|---|
System.String | ip |