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

    Show / Hide Table of Contents

    Interface ISocket

    Provides a common interface across platforms for UDP sockets used by this SSDP implementation.

    Inherited Members
    System.IDisposable.Dispose()
    Namespace: MediaBrowser.Model.Net
    Assembly: MediaBrowser.Model.dll
    Syntax
    public interface ISocket : IDisposable

    Properties

    DontThrowOnCancel

    Declaration
    bool DontThrowOnCancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    LocalIPAddress

    Declaration
    IPAddress LocalIPAddress { get; }
    Property Value
    Type Description
    System.Net.IPAddress

    Methods

    BeginReceive(Byte[], Int32, Int32, AsyncCallback)

    Declaration
    IAsyncResult BeginReceive(byte[] buffer, int offset, int count, AsyncCallback callback)
    Parameters
    Type Name Description
    System.Byte[] buffer
    System.Int32 offset
    System.Int32 count
    System.AsyncCallback callback
    Returns
    Type Description
    System.IAsyncResult

    EndReceive(IAsyncResult)

    Declaration
    SocketReceiveResult EndReceive(IAsyncResult result)
    Parameters
    Type Name Description
    System.IAsyncResult result
    Returns
    Type Description
    SocketReceiveResult

    Receive(Byte[], Int32, Int32)

    Declaration
    int Receive(byte[] buffer, int offset, int count)
    Parameters
    Type Name Description
    System.Byte[] buffer
    System.Int32 offset
    System.Int32 count
    Returns
    Type Description
    System.Int32

    ReceiveAsync(Byte[], Int32, Int32, CancellationToken)

    Declaration
    Task<SocketReceiveResult> ReceiveAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Byte[] buffer
    System.Int32 offset
    System.Int32 count
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<SocketReceiveResult>

    SendToAsync(Byte[], Int32, Int32, IPEndPoint, CancellationToken)

    Sends a UDP message to a particular end point (uni or multicast).

    Declaration
    Task SendToAsync(byte[] buffer, int offset, int bytes, IPEndPoint endPoint, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.Byte[] buffer
    System.Int32 offset
    System.Int32 bytes
    System.Net.IPEndPoint endPoint
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task

    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.