Constructor SsdpCommunicationsServer
SsdpCommunicationsServer(ISocketFactory)
Minimum constructor.
Declaration
public SsdpCommunicationsServer(ISocketFactory socketFactory)
Parameters
Type | Name | Description |
---|---|---|
ISocketFactory | socketFactory | An implementation of the ISocketFactory interface that can be used to make new unicast and multicast sockets. Cannot be null. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
SsdpCommunicationsServer(ISocketFactory, Int32)
Partial constructor.
Declaration
public SsdpCommunicationsServer(ISocketFactory socketFactory, int localPort)
Parameters
Type | Name | Description |
---|---|---|
ISocketFactory | socketFactory | An implementation of the ISocketFactory interface that can be used to make new unicast and multicast sockets. Cannot be null. |
System.Int32 | localPort | The specific local port to use for all sockets created by this instance. Specify zero to indicate the system should choose a free port itself. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
SsdpCommunicationsServer(ISocketFactory, Int32, Int32)
Full constructor.
Declaration
public SsdpCommunicationsServer(ISocketFactory socketFactory, int localPort, int multicastTimeToLive)
Parameters
Type | Name | Description |
---|---|---|
ISocketFactory | socketFactory | An implementation of the ISocketFactory interface that can be used to make new unicast and multicast sockets. Cannot be null. |
System.Int32 | localPort | The specific local port to use for all sockets created by this instance. Specify zero to indicate the system should choose a free port itself. |
System.Int32 | multicastTimeToLive | The multicast time to live value for multicast sockets. Technically this is a number of router hops, not a 'Time'. Must be greater than zero. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.ArgumentOutOfRangeException | The |