Esempio n. 1
0
        public UPnPProtocol(FlowLib.Connections.UPnP connection)
        {
            this.MessageReceived = new FmdcEventHandler(OnMessageReceived);
            this.MessageToSend   = new FmdcEventHandler(OnMessageToSend);
            this.Update          = new FmdcEventHandler(OnUpdate);

            Encoding = System.Text.Encoding.ASCII;
            con      = connection;
        }
Esempio n. 2
0
 /// <summary>
 /// Creates a UPnP protocol to use on the specified connection.
 /// Specied searchTarget is used to find upnp-devices.
 /// </summary>
 /// <param name="connection">Connection to use</param>
 /// <param name="searchTarget">
 /// Can be one of the below:
 /// ssdp:all			=	Search for all devices and services.
 /// upnp:rootdevice		=	Search for root devices only.
 /// uuid:device-UUID	=	Search for a particular device. Device UUID specified by UPnP vendor.
 /// urn:schemas-upnp-org:device:deviceType:v	=	Search for any device of this type. Device type and version defined by UPnP Forum working committee.
 /// urn:schemas-upnp-org:service:serviceType:v	=	Search for any service of this type. Service type and version defined by UPnP Forum working committee.
 /// urn:domain-name:device:deviceType:v			=	Search for any device of this type. Domain name, device type and version defined by UPnP vendor. Period characters in the domain name must be replaced with hyphens in accordance with RFC 2141.
 /// urn:domain-name:service:serviceType:v		=	Search for any service of this type. Domain name, service type and version defined by UPnP vendor. Period characters in the domain name must be replaced with hyphens in accordance with RFC 2141.
 ///
 /// See UPnP Architecture spec for more info (http://upnp.org/specs/arch/UPnP-arch-DeviceArchitecture-v1.0.pdf)
 /// </param>
 public UPnPProtocol(FlowLib.Connections.UPnP connection, string searchTarget)
     : this(connection)
 {
     searchStringToUse = searchTarget;
 }