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 = 65482)

Summary:

Initializes a new instance of the class.

Parameter:

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


Methods

SendError BeginSendData(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

void ReceiveAsync()

Summary:

Receive asynchronous.



UdpClientBase

An UDP client base.

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

Constructors

.ctor UdpClientBase(UInt16 expectedMaxPayloadSize = 65482)

Summary:

Initializes a new instance of the class.

Parameter:

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


Fields

BigDataHandler _bigDataHandler

Summary:

The big data handler.



Properties

UInt16 MaxPayloadSize

Summary:

Gets the maximum size of the payload.



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)

Summary:

Attempts to create socket.

Parameter:

  • socket - [out] The 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 = 65482)

Summary:

Initializes a new instance of the class.

Parameter:

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


Methods

SendError BeginSendData(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

void ReceiveAsync()

Summary:

Receive asynchronous.



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 expectedMaxClients, UInt16 expectedMaxPayloadSize = 65482)

Summary:

Initializes a new instance of the class.

Parameter:

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


Methods

void ListenAsync()

Summary:

Listen asynchronous.


    SendError SendTo(EndPoint arg0, PacketInfo& packetInfo)

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 = 65482)

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 expectedMaxClients, UInt16 expectedMaxPayloadSize = 65482)

Summary:

Initializes a new instance of the class.

Parameter:

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


Methods

void ListenAsync()

Summary:

Listen asynchronous.


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