-
-
Notifications
You must be signed in to change notification settings - Fork 4
Exomia.Network.UDP
Daniel Baetz edited this page Jul 28, 2019
·
22 revisions
A UDP-Client build with the "Asynchronous Programming Model" (APM)
public class Exomia.Network.UDP.UdpClientApm
: ClientBase, IClient, IDisposable.ctor UdpClientApm(UInt16 maxPacketSize = 65522)SendError BeginSendData(UInt32 commandID, Byte[] data, Int32 offset, Int32 length, UInt32 responseID)
Begins send data.
-
commandID- command id. -
data- The data. -
offset- The offset. -
length- The length. -
responseID- Identifier for the response.
Boolean TryCreateSocket(Socket& socket)
Attempts to create socket.
-
socket- [out] The socket.
A UDP-Client build with the "Event-based Asynchronous Pattern" (EAP)
public class Exomia.Network.UDP.UdpClientEap
: ClientBase, IClient, IDisposable.ctor UdpClientEap(Int32 maxPacketSize = 65522)SendError BeginSendData(UInt32 commandID, Byte[] data, Int32 offset, Int32 length, UInt32 responseID)
Begins send data.
-
commandID- command id. -
data- The data. -
offset- The offset. -
length- The length. -
responseID- Identifier for the response.
Boolean TryCreateSocket(Socket& socket)
Attempts to create socket.
-
socket- [out] The socket.
A UDP-Server build with the "Asynchronous Programming Model" (APM)
public abstract class Exomia.Network.UDP.UdpServerApmBase<TServerClient>
: ServerBase<EndPoint, TServerClient>, IServer<EndPoint, TServerClient>, IDisposable.ctor UdpServerApmBase`1(UInt32 maxClients, Int32 maxPacketSize = 65522)Boolean OnRun(Int32 port, Socket& listener)
Executes the run action.
-
port- The port. -
listener- [out] The listener.
SendError SendTo(EndPoint arg0, UInt32 commandID, Byte[] data, Int32 offset, Int32 length, UInt32 responseID)An UDP server client base.
public abstract class Exomia.Network.UDP.UdpServerClientBase
: ServerClientBase<EndPoint>.ctor UdpServerClientBase(EndPoint endPoint)IPAddress IPAddressA UDP-Server build with the "Event-based Asynchronous Pattern" (EAP)
public abstract class Exomia.Network.UDP.UdpServerEapBase<TServerClient>
: ServerBase<EndPoint, TServerClient>, IServer<EndPoint, TServerClient>, IDisposable.ctor UdpServerEapBase`1(UInt32 maxClients, Int32 maxPacketSize = 65522)void OnDispose(Boolean disposing)Boolean OnRun(Int32 port, Socket& listener)
Executes the run action.
-
port- The port. -
listener- [out] The listener.
SendError SendTo(EndPoint arg0, UInt32 commandID, Byte[] data, Int32 offset, Int32 length, UInt32 responseID)