Skip to content

Exomia.Network.UDP

Daniel Baetz edited this page Aug 1, 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 maxPacketSize = 65508)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpClientApm class.

Parameter:

  • maxPacketSize - (Optional) Size of the maximum packet.


Methods

    SendError BeginSendData(Int32 packetID, UInt32 commandID, UInt32 responseID, Byte* src, Int32 chunkLength, Int32 chunkOffset, Int32 length)
void ReceiveAsync()

Summary:

Receive asynchronous.



UdpClientBase

An UDP client base.

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

Constructors

.ctor UdpClientBase(UInt16 maxPacketSize)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpClientBase class.

Parameter:

  • maxPacketSize - Size of the maximum packet.


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 maxPacketSize = 65508)

Summary:

Initializes a new instance of the Exomia.Network.UDP.UdpClientEap class.

Parameter:

  • maxPacketSize - (Optional) Size of the maximum packet.


Methods

    SendError BeginSendData(Int32 packetID, UInt32 commandID, UInt32 responseID, Byte* src, Int32 chunkLength, Int32 chunkOffset, Int32 length)
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 maxPacketSize = 65508)

Summary:

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

Parameter:

  • expectedMaxClients - The expected maximum clients.
  • maxPacketSize - (Optional) Size of the maximum packet.


Methods

void ListenAsync()

Summary:

Listen asynchronous.


    SendError SendTo(EndPoint arg0, Int32 packetID, UInt32 commandID, UInt32 responseID, Byte* src, Int32 chunkLength, Int32 chunkOffset, Int32 length)

UdpServerBase

An UDP server base.

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

Constructors

.ctor UdpServerBase`1(UInt16 maxPacketSize)

Summary:

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

Parameter:

  • maxPacketSize - Size of the maximum packet.


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 maxPacketSize = 65508)

Summary:

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

Parameter:

  • expectedMaxClients - The expected maximum clients.
  • maxPacketSize - (Optional) Size of the maximum packet.


Methods

void ListenAsync()

Summary:

Listen asynchronous.


    void OnDispose(Boolean disposing)
    SendError SendTo(EndPoint arg0, Int32 packetID, UInt32 commandID, UInt32 responseID, Byte* src, Int32 chunkLength, Int32 chunkOffset, Int32 length)