Example #1
0
    public BackendServer()
    {
      ServerSettings serverSettings = ServiceRegistration.Get<ISettingsManager>().Load<ServerSettings>();
      UPnPConfiguration.PRODUCT_VERSION = MP2SERVER_DEVICEVERSION;
      UPnPConfiguration.LOGGER = new UPnPLoggerDelegate();
      UPnPConfiguration.USE_IPV4 = serverSettings.UseIPv4;
      UPnPConfiguration.USE_IPV6 = serverSettings.UseIPv6;
      HttpResponse.HTTP_SERVER_NAME = MP2_HTTP_SERVER_NAME;

      ISystemResolver systemResolver = ServiceRegistration.Get<ISystemResolver>();
      _upnpServer = new UPnPBackendServer(systemResolver.LocalSystemId);
    }
Example #2
0
    public BackendServer()
    {
      ServerSettings serverSettings = ServiceRegistration.Get<ISettingsManager>().Load<ServerSettings>();
      UPnPConfiguration.PRODUCT_VERSION = MP2SERVER_DEVICEVERSION;
      UPnPConfiguration.LOGGER = new UPnPLoggerDelegate();
      UPnPConfiguration.USE_IPV4 = serverSettings.UseIPv4;
      UPnPConfiguration.USE_IPV6 = serverSettings.UseIPv6;
      UPnPConfiguration.IP_ADDRESS_BINDINGS = serverSettings.IPAddressBindingsList;
      NetworkUtils.LimitIPEndpoints = serverSettings.LimitIPEndpoints;
      HttpResponse.HTTP_SERVER_NAME = MP2_HTTP_SERVER_NAME;

      ISystemResolver systemResolver = ServiceRegistration.Get<ISystemResolver>();
      _upnpServer = new UPnPBackendServer(systemResolver.LocalSystemId);
    }