Skip to content

Exomia.Network.UDP

Daniel Baetz edited this page Jun 19, 2019 · 22 revisions

UdpClientApm

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

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

Methods

Type Name Summary
SendError BeginSendData(UInt32 commandid, Byte[] data, Int32 offset, Int32 length, UInt32 responseID) Begins send data.
void ReceiveAsync() Receive asynchronous.
Boolean TryCreateSocket(Socket& socket) Attempts to create socket.

UdpClientEap

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

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

Methods

Type Name Summary
SendError BeginSendData(UInt32 commandid, Byte[] data, Int32 offset, Int32 length, UInt32 responseID) Begins send data.
void ReceiveAsync() Receive asynchronous.
Boolean TryCreateSocket(Socket& socket) Attempts to create socket.

UdpServerApmBase<TServerClient>

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

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

Methods

Type Name Summary
void ListenAsync() Listen asynchronous.
Boolean OnRun(Int32 port, Socket& listener) Executes the run action.
SendError SendTo(EndPoint arg0, UInt32 commandid, Byte[] data, Int32 offset, Int32 length, UInt32 responseid)

UdpServerEapBase<TServerClient>

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

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

Fields

Type Name Summary
Int32 _maxPacketSize _maxPacketSize.

Methods

Type Name Summary
void ListenAsync() Listen asynchronous.
void OnDispose(Boolean disposing)
Boolean OnRun(Int32 port, Socket& listener) Executes the run action.
SendError SendTo(EndPoint arg0, UInt32 commandid, Byte[] data, Int32 offset, Int32 length, UInt32 responseid)