示例#1
0
 public Host GetHost(IPEndPoint address)
 {
     if (Hosts.TryGet(address, out var host))
     {
         return(host);
     }
     return(null);
 }
示例#2
0
        public Host GetHost(IPAddress address)
        {
            Host host;

            if (_hosts.TryGet(address, out host))
            {
                return(host);
            }
            return(null);
        }