Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Interface ISocketFactory

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

    Namespace: MediaBrowser.Model.Net
    Assembly: MediaBrowser.Model.dll
    Syntax
    public interface ISocketFactory

    Methods

    CreateNetworkStream(ISocket, Boolean)

    Declaration
    Stream CreateNetworkStream(ISocket socket, bool ownsSocket)
    Parameters
    Type Name Description
    ISocket socket
    System.Boolean ownsSocket
    Returns
    Type Description
    System.IO.Stream

    CreateTcpSocket(IPAddress, Int32)

    Declaration
    ISocket CreateTcpSocket(IPAddress remoteAddress, int remotePort)
    Parameters
    Type Name Description
    System.Net.IPAddress remoteAddress
    System.Int32 remotePort
    Returns
    Type Description
    ISocket

    CreateUdpBroadcastSocket(Int32)

    Declaration
    ISocket CreateUdpBroadcastSocket(int localPort)
    Parameters
    Type Name Description
    System.Int32 localPort
    Returns
    Type Description
    ISocket

    CreateUdpBroadcastSocket(Int32, IPAddress)

    Declaration
    ISocket CreateUdpBroadcastSocket(int localPort, IPAddress ipAddress)
    Parameters
    Type Name Description
    System.Int32 localPort
    System.Net.IPAddress ipAddress
    Returns
    Type Description
    ISocket

    CreateUdpSocket(Int32)

    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
    Type Description
    ISocket

    A ISocket implementation.

    Extension Methods

    Extensions.JsonClone<T>(T, IJsonSerializer)
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.