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