-
-
Notifications
You must be signed in to change notification settings - Fork 4
Exomia.Network.UDP
Daniel Baetz edited this page Jun 19, 2019
·
22 revisions
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. |
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. |
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) |
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) |