• 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

Interface ISocketFactory

Implemented by components that can create a platform specific UDP socket implementation, and wrap it in the cross platform IUdpSocket interface.

Namespace: Rssdp.Infrastructure
Assembly: cs.temp.dll.dll
Syntax
public interface ISocketFactory

Properties

DeviceNetworkType

What type of sockets will be created: ipv6 or ipv4

Declaration
DeviceNetworkType DeviceNetworkType { get; }
Property Value
Type Description
DeviceNetworkType

Methods

CreateUdpMulticastSocket(Int32, Int32)

Creates a new multicast socket using the specified multicast IP address, multicast time to live and local port.

Declaration
IUdpSocket CreateUdpMulticastSocket(int multicastTimeToLive, int localPort)
Parameters
Type Name Description
System.Int32 multicastTimeToLive

The multicast time to live value. Actually a maximum number of network hops for UDP packets.

System.Int32 localPort

The local port to bind to.

Returns
Type Description
IUdpSocket

A IUdpSocket implementation.

CreateUdpSocket(Int32)

Creates a new unicast socket using the specified local port number.

Declaration
IUdpSocket CreateUdpSocket(int localPort)
Parameters
Type Name Description
System.Int32 localPort

The local port to bind to.

Returns
Type Description
IUdpSocket

A IUdpSocket implementation.

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