コード例 #1
0
ファイル: UpnpServer.cs プロジェクト: automaters/Upnp
        public UpnpServer(UpnpRoot root, SsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;
            this.SsdpServer = ssdp ?? new SsdpServer();
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }
コード例 #2
0
ファイル: UpnpServer.cs プロジェクト: sjndhkl/Upnp
        public UpnpServer(UpnpRoot root, SsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;
            this.SsdpServer             = ssdp ?? new SsdpServer();
            this.GenaServer             = gena ?? new GenaServer();

            BuildAdvertisements();
        }
コード例 #3
0
ファイル: UpnpServer.cs プロジェクト: johnduhart/Upnp
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            var sockets = SsdpSocketFactory.BuildSockets().ToArray();

            this.SsdpServer = ssdp ?? new SsdpServer(sockets);
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }
コード例 #4
0
ファイル: UpnpServer.cs プロジェクト: johnduhart/Upnp
        public UpnpServer(UpnpRoot root, ISsdpServer ssdp = null, GenaServer gena = null)
        {
            this.Root = root;
            this.Root.ChildDeviceAdded += OnChildDeviceAdded;

            var sockets = SsdpSocketFactory.BuildSockets().ToArray();

            this.SsdpServer = ssdp ?? new SsdpServer(sockets);
            this.GenaServer = gena ?? new GenaServer();

            BuildAdvertisements();
        }