PeerCastStation.Core.OutputListener.GetAccessControlInfo C# (CSharp) Méthode

GetAccessControlInfo() private méthode

private GetAccessControlInfo ( IPEndPoint remote_endpoint ) : AccessControlInfo
remote_endpoint System.Net.IPEndPoint
Résultat AccessControlInfo
    private AccessControlInfo GetAccessControlInfo(IPEndPoint remote_endpoint)
    {
      if (remote_endpoint==null) return this.GlobalAccessControlInfo;
      if (remote_endpoint.Address.Equals(IPAddress.Loopback) ||
          remote_endpoint.Address.Equals(IPAddress.IPv6Loopback)) {
        return this.LoopbackAccessControlInfo;
      }
      else if (remote_endpoint.Address.IsSiteLocal()) {
        return this.LocalAccessControlInfo;
      }
      else {
        return this.GlobalAccessControlInfo;
      }
    }