Skip to content

Exomia.Network.UDP

Daniel Baetz edited this page Aug 3, 2019 · 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 = 65510)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpClientApm 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 = 65510)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpServerEapBase`1 class.

Parameter:

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


Properties

UInt16 MaxPayloadSize

Summary:

Gets the maximum size of the payload.



Methods

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

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpClientEap 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 = 65510)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpServerApmBase`1 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 = 65510)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpServerEapBase`1 class.

Parameter:

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


Properties

    UInt16 MaxPayloadSize

Methods

Boolean OnRun(Int32 port, Socket& listener)

Summary:

Executes the run action.

Parameter:

  • port - The port.
  • listener - [out] The 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 = 65510)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpServerEapBase`1 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)