Interface ISocketFactory
Implemented by components that can create a platform specific UDP socket implementation, and wrap it in the cross platform ISocket interface.
Assembly: MediaBrowser.Model.dll
public interface ISocketFactory
Methods
Declaration
Stream CreateNetworkStream(ISocket socket, bool ownsSocket)
Parameters
Type |
Name |
Description |
ISocket |
socket |
|
System.Boolean |
ownsSocket |
|
Returns
Type |
Description |
System.IO.Stream |
|
Declaration
ISocket CreateTcpSocket(IPAddress remoteAddress, int remotePort)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
remoteAddress |
|
System.Int32 |
remotePort |
|
Returns
Declaration
ISocket CreateUdpBroadcastSocket(int localPort)
Parameters
Type |
Name |
Description |
System.Int32 |
localPort |
|
Returns
Declaration
ISocket CreateUdpBroadcastSocket(int localPort, IPAddress ipAddress)
Parameters
Type |
Name |
Description |
System.Int32 |
localPort |
|
System.Net.IPAddress |
ipAddress |
|
Returns
Createa a new unicast socket using the specified local port number.
Declaration
ISocket CreateUdpSocket(int localPort)
Parameters
Type |
Name |
Description |
System.Int32 |
localPort |
The local port to bind to.
|
Returns
Extension Methods