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. |