Turn.Server.Allocation.IsValid C# (CSharp) Method

IsValid() public method

public IsValid ( ) : bool
return bool
        public bool IsValid()
        {
            return IsValid(Environment.TickCount);
        }

Same methods

Allocation::IsValid ( int tickCount ) : bool

Usage Example

Ejemplo n.º 1
0
        public Allocation GetByPeer(ServerEndPoint local, IPEndPoint remote)
        {
            Allocation allocation = null;

            lock (syncRoot)
                allocations4.TryGetValue(GetKey(local, remote), out allocation);

            return(allocation != null && allocation.IsValid() ? allocation : null);
        }
All Usage Examples Of Turn.Server.Allocation::IsValid