Advtools.AdvInterceptor.State.AllocateIP C# (CSharp) Method

AllocateIP() private method

private AllocateIP ( string name ) : IPAddress
name string
return System.Net.IPAddress
        internal System.Net.IPAddress AllocateIP(string name)
        {
            throw new NotImplementedException();
        }

Same methods

State::AllocateIP ( string name, IPAddress ip ) : IPAddress

Usage Example

Example #1
0
        private IPAddress CatchAllProcessQuery(DnsQuestion question)
        {
            // If there is an interception configured, take it
            Interception interception = state_.Config.GetInterception(question.Name);

            if (interception != null)
            {
                return(GetIp(interception));
            }

            return(state_.AllocateIP(question.Name));
        }