예제 #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);
        }