Skip to content

Exomia.Network.UDP

Daniel Baetz edited this page Oct 1, 2020 · 22 revisions

UdpClientApm

A UDP-Client build with the "Asynchronous Programming Model" (APM)

public class Exomia.Network.UDP.UdpClientApm
    : UdpClientBase, IClient, IDisposable

Constructors

.ctor UdpClientApm(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

SendError BeginSend(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

    void ReceiveAsync()

UdpClientBase

An UDP client base.

public abstract class Exomia.Network.UDP.UdpClientBase
    : ClientBase, IClient, IDisposable

Constructors

.ctor UdpClientBase(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Fields

    BigDataHandler _bigDataHandler

Properties

    UInt16 MaxPayloadSize

Methods

void Configure()

Summary:

Called after the
method directly after the socket is successfully created.


void OnDispose(Boolean disposing)

Summary:

OnDispose.

Parameter:

  • disposing - disposing.

    Boolean TryCreateSocket(Socket& socket)

UdpClientEap

A UDP-Client build with the "Event-based Asynchronous Pattern" (EAP)

public class Exomia.Network.UDP.UdpClientEap
    : UdpClientBase, IClient, IDisposable

Constructors

.ctor UdpClientEap(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

SendError BeginSend(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

    void ReceiveAsync()

UdpServerApmBase

A UDP-Server build with the "Asynchronous Programming Model" (APM)

public abstract class Exomia.Network.UDP.UdpServerApmBase<TServerClient>
    : UdpServerBase<TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor UdpServerApmBase`1(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

    SendError BeginSendTo(EndPoint arg0, PacketInfo& packetInfo)
    void ListenAsync()

UdpServerBase

An UDP server base.

public abstract class Exomia.Network.UDP.UdpServerBase<TServerClient>
    : ServerBase<EndPoint, TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor UdpServerBase`1(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Fields

    BigDataHandler> _bigDataHandler

Properties

    UInt16 MaxPayloadSize

Methods

    void Configure()
    Boolean OnRun(Int32 port, Socket& listener)

UdpServerClientBase

An UDP server client base.

public abstract class Exomia.Network.UDP.UdpServerClientBase
    : ServerClientBase<EndPoint>, IServerClient

Constructors

    .ctor UdpServerClientBase()

Properties

IPAddress IPAddress

Summary:

Gets the IP address.



UdpServerEapBase

A UDP-Server build with the "Event-based Asynchronous Pattern" (EAP)

public abstract class Exomia.Network.UDP.UdpServerEapBase<TServerClient>
    : UdpServerBase<TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor UdpServerEapBase`1(UInt16 expectedMaxPayloadSize = 65484)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

    SendError BeginSendTo(EndPoint arg0, PacketInfo& packetInfo)
    void ListenAsync()
    void OnDispose(Boolean disposing)

Clone this wiki locally