withSIX.Play.Core.Games.Legacy.ServerQuery.ServerQueryQueue.GetNextEndPoint C# (CSharp) Method

GetNextEndPoint() private method

private GetNextEndPoint ( ) : IPEndPoint
return System.Net.IPEndPoint
        IPEndPoint GetNextEndPoint() {
            var port = Interlocked.Increment(ref _lastPort);
            if (port > IPEndPoint.MaxPort)
                throw new RanOutOfPortsException("Reached MaxPort");
            return new IPEndPoint(IPAddress.Any, port);
        }