Show / Hide Table of Contents

    Class UdpReceiver

    Represents the receiver of messages transfered via UDP protocol.

    Представляет получателя сообщений по протоколу UDP.

    Inheritance
    Object
    UdpReceiver
    Namespace: Platform.Protocols.Udp
    Assembly: Platform.Protocols.dll
    Syntax
    public class UdpReceiver : DisposableBase

    Constructors

    | Improve this Doc View Source

    UdpReceiver()

    Initializes a new UdpReceiver instance.

    Declaration
    public UdpReceiver()
    | Improve this Doc View Source

    UdpReceiver(MessageHandlerCallback)

    Initializes a new UdpReceiver instance.

    Declaration
    public UdpReceiver(MessageHandlerCallback messageHandler)
    Parameters
    Type Name Description
    MessageHandlerCallback messageHandler

    A message handler.

    | Improve this Doc View Source

    UdpReceiver(Int32, MessageHandlerCallback)

    Initializes a new UdpReceiver instance.

    Declaration
    public UdpReceiver(int listenPort, MessageHandlerCallback messageHandler)
    Parameters
    Type Name Description
    Int32 listenPort

    A listen port.

    MessageHandlerCallback messageHandler

    A message handler.

    | Improve this Doc View Source

    UdpReceiver(Int32, Boolean, MessageHandlerCallback)

    Initializes a new UdpReceiver instance.

    Declaration
    public UdpReceiver(int listenPort, bool autoStart, MessageHandlerCallback messageHandler)
    Parameters
    Type Name Description
    Int32 listenPort

    A listen port.

    Boolean autoStart

    A auto start.

    MessageHandlerCallback messageHandler

    A message handler.

    Properties

    | Improve this Doc View Source

    Available

    Gets the available value.

    Declaration
    public bool Available { get; }
    Property Value
    Type Description
    Boolean

    Methods

    | Improve this Doc View Source

    Dispose(Boolean, Boolean)

    Disposes the manual.

    Declaration
    protected override void Dispose(bool manual, bool wasDisposed)
    Parameters
    Type Name Description
    Boolean manual

    The manual.

    Boolean wasDisposed

    The was disposed.

    | Improve this Doc View Source

    Receive()

    Receives this instance.

    Declaration
    public string Receive()
    Returns
    Type Description
    String

    The string

    | Improve this Doc View Source

    ReceiveAndHandle()

    Receives the and handle.

    Declaration
    public void ReceiveAndHandle()
    | Improve this Doc View Source

    Start()

    Starts this instance.

    Declaration
    public void Start()
    | Improve this Doc View Source

    Stop()

    Stops this instance.

    Declaration
    public void Stop()
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX