namespace Rssdp.Infrastructure { /// /// Provides constants for common values related to the SSDP protocols. /// public static class SsdpConstants { /// /// Multicast IP Address used for SSDP multicast messages. Values is 239.255.255.250. /// public const string MulticastLocalAdminAddress = "239.255.255.250"; /// /// The UDP port used for SSDP multicast messages. Values is 1900. /// public const int MulticastPort = 1900; /// /// The default multicase TTL for SSDP multicast messages. Value is 4. /// public const int SsdpDefaultMulticastTimeToLive = 4; internal const string MSearchMethod = "M-SEARCH"; internal const string SsdpDiscoverMessage = "ssdp:discover"; internal const string SsdpDiscoverAllSTHeader = "ssdp:all"; internal const string SsdpDeviceDescriptionXmlNamespace = "urn:schemas-upnp-org:device-1-0"; /// /// Default buffer size for receiving SSDP broadcasts. Value is 8192 (bytes). /// public const int DefaultUdpSocketBufferSize = 8192; /// /// The maximum possible buffer size for a UDP message. Value is 65507 (bytes). /// public const int MaxUdpSocketBufferSize = 65507; // Max possible UDP packet size on IPv4 without using 'jumbograms'. /// /// Namespace/prefix for UPnP device types. Values is schemas-upnp-org. /// public const string UpnpDeviceTypeNamespace = "schemas-upnp-org"; /// /// UPnP Root Device type. Value is upnp:rootdevice. /// public const string UpnpDeviceTypeRootDevice = "upnp:rootdevice"; /// /// The value is used by Windows Explorer for device searches instead of the UPNPDeviceTypeRootDevice constant. /// Not sure why (different spec, bug, alternate protocol etc). Used to enable Windows Explorer support. /// public const string PnpDeviceTypeRootDevice = "pnp:rootdevice"; /// /// UPnP Basic Device type. Value is Basic. /// public const string UpnpDeviceTypeBasicDevice = "Basic"; internal const string SsdpKeepAliveNotification = "ssdp:alive"; internal const string SsdpByeByeNotification = "ssdp:byebye"; internal const int UdpResendCount = 3; } }