• API Documentation
Show / Hide Table of Contents
  • Rssdp
    • AggregateSsdpDeviceLocator
    • CustomHttpHeader
    • CustomHttpHeadersCollection
    • DeviceAvailableEventArgs
    • DeviceEventArgs
    • DeviceNetworkType
    • DeviceNetworkTypeExtensions
    • DeviceUnavailableEventArgs
    • DiscoveredSsdpDevice
    • ExceptionExtensions
    • ISsdpLogger
    • NullLogger
    • ServiceEventArgs
    • SocketClosedException
    • SocketFactory
    • SsdpDevice
    • SsdpDeviceExtensions
    • SsdpDeviceIcon
    • SsdpDeviceLocator
    • SsdpDevicePropertiesCollection
    • SsdpDeviceProperty
    • SsdpDevicePublisher
    • SsdpEmbeddedDevice
    • SsdpRootDevice
    • SsdpService
    • SsdpStandardsMode
    • SsdpTraceLogger
  • Rssdp.Infrastructure
    • DisposableManagedObjectBase
    • HttpParserBase<T>
    • HttpRequestParser
    • HttpResponseParser
    • ISocketFactory
    • ISsdpCommunicationsServer
    • ISsdpDeviceLocator
    • ISsdpDevicePublisher
    • IUdpSocket
    • IUpnpDeviceValidator
    • ReceivedUdpData
    • RequestReceivedEventArgs
    • ResponseReceivedEventArgs
    • SsdpCommunicationsServer
    • SsdpConstants
    • SsdpDeviceLocatorBase
    • SsdpDevicePublisherBase
    • UdpEndPoint
    • Upnp10DeviceValidator

Class SsdpConstants

Provides constants for common values related to the SSDP protocols.

Inheritance
System.Object
SsdpConstants
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public static class SsdpConstants

Fields

DefaultUdpResendCount

The default number of times to resend each UDP packet.

Declaration
public const int DefaultUdpResendCount = 3
Field Value
Type Description
System.Int32
Remarks

SSDP spec recommends sending messages multiple times (not more than 3) to account for possible packet loss over UDP.

This constant has a value of 3.

DefaultUdpSocketBufferSize

Default buffer size for receiving SSDP broadcasts. Value is 8192 (bytes).

Declaration
public const int DefaultUdpSocketBufferSize = 8192
Field Value
Type Description
System.Int32

LocatorActivitySourceName

The name of the activity source tracing information is emitted from in the locator objects.

Declaration
public const string LocatorActivitySourceName = "Rssdp.SsdpDeviceLocator"
Field Value
Type Description
System.String

MaxUdpSocketBufferSize

The maximum possible buffer size for a UDP message. Value is 65507 (bytes).

Declaration
public const int MaxUdpSocketBufferSize = 65507
Field Value
Type Description
System.Int32

MulticastLinkLocalAddressV6

Multicast IPV6 Address used for SSDP multicast messages. Value is FF02::C.

Declaration
public const string MulticastLinkLocalAddressV6 = "FF02::C"
Field Value
Type Description
System.String

MulticastLocalAdminAddress

Multicast IP Address used for SSDP multicast messages. Value is 239.255.255.250.

Declaration
public const string MulticastLocalAdminAddress = "239.255.255.250"
Field Value
Type Description
System.String

MulticastLocalAdminEndpoint

A UdpEndPoint configured with MulticastLocalAdminAddress and MulticastPort, representing the endpoint broadcast SSDP messages are sent to.

Declaration
public static readonly UdpEndPoint MulticastLocalAdminEndpoint
Field Value
Type Description
UdpEndPoint

MulticastPort

The UDP port used for SSDP multicast messages. Values is 1900.

Declaration
public const int MulticastPort = 1900
Field Value
Type Description
System.Int32

PnpDeviceTypeRootDevice

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.

Declaration
public const string PnpDeviceTypeRootDevice = "pnp:rootdevice"
Field Value
Type Description
System.String

PublisherActivitySourceName

The name of the activity source tracing information is emitted from in the publisher objects.

Declaration
public const string PublisherActivitySourceName = "Rssdp.SsdpDevicePublisher"
Field Value
Type Description
System.String

SsdpDefaultMulticastTimeToLive

The default multicase TTL for SSDP multicast messages. Value is 4.

Declaration
public const int SsdpDefaultMulticastTimeToLive = 4
Field Value
Type Description
System.Int32

UpnpDeviceTypeBasicDevice

UPnP Basic Device type. Value is Basic.

Declaration
public const string UpnpDeviceTypeBasicDevice = "Basic"
Field Value
Type Description
System.String

UpnpDeviceTypeNamespace

Namespace/prefix for UPnP device types. Values is schemas-upnp-org.

Declaration
public const string UpnpDeviceTypeNamespace = "schemas-upnp-org"
Field Value
Type Description
System.String

UpnpDeviceTypeRootDevice

UPnP Root Device type. Value is upnp:rootdevice.

Declaration
public const string UpnpDeviceTypeRootDevice = "upnp:rootdevice"
Field Value
Type Description
System.String

Properties

DefaultUdpResendDelay

The default time to delay between re-sends of UDP packets.

Declaration
public static TimeSpan DefaultUdpResendDelay { get; }
Property Value
Type Description
System.TimeSpan
Remarks

This property returns a value of 100 milliseconds.

See Also
DefaultUdpResendCount
In This Article
Back to top Copyright (c) 2015 Troy Willmot