-
-
Notifications
You must be signed in to change notification settings - Fork 4
Exomia.Network.UDP
Daniel Baetz edited this page Oct 1, 2020
·
22 revisions
A UDP-Client build with the "Asynchronous Programming Model" (APM)
public class Exomia.Network.UDP.UdpClientApm
: UdpClientBase, IClient, IDisposable
.ctor
UdpClientApm(UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
SendError
BeginSendData(PacketInfo&
packetInfo)
Begins send data.
-
packetInfo
- Information describing the packet.
An UDP client base.
public abstract class Exomia.Network.UDP.UdpClientBase
: ClientBase, IClient, IDisposable
.ctor
UdpClientBase(UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
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
: UdpClientBase, IClient, IDisposable
.ctor
UdpClientEap(UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
SendError
BeginSendData(PacketInfo&
packetInfo)
Begins send data.
-
packetInfo
- Information describing the packet.
A UDP-Server build with the "Asynchronous Programming Model" (APM)
public abstract class Exomia.Network.UDP.UdpServerApmBase<TServerClient>
: UdpServerBase<TServerClient>, IServer<TServerClient>, IDisposable
.ctor
UdpServerApmBase`1(UInt16
expectedMaxClients, UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxClients
- The expected maximum clients. -
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
SendError
SendTo(EndPoint
arg0, PacketInfo&
packetInfo)An UDP server base.
public abstract class Exomia.Network.UDP.UdpServerBase<TServerClient>
: ServerBase<EndPoint, TServerClient>, IServer<TServerClient>, IDisposable
.ctor
UdpServerBase`1(UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
BigDataHandler>
_bigDataHandlerUInt16
MaxPayloadSizevoid
Configure()Boolean
OnRun(Int32
port, Socket&
listener)An UDP server client base.
public abstract class Exomia.Network.UDP.UdpServerClientBase
: ServerClientBase<EndPoint>, IServerClient
.ctor
UdpServerClientBase()A UDP-Server build with the "Event-based Asynchronous Pattern" (EAP)
public abstract class Exomia.Network.UDP.UdpServerEapBase<TServerClient>
: UdpServerBase<TServerClient>, IServer<TServerClient>, IDisposable
.ctor
UdpServerEapBase`1(UInt16
expectedMaxClients, UInt16
expectedMaxPayloadSize = 65482)
Initializes a new instance of the class.
-
expectedMaxClients
- The expected maximum clients. -
expectedMaxPayloadSize
- (Optional) Size of the expected maximum payload.
void
OnDispose(Boolean
disposing)SendError
SendTo(EndPoint
arg0, PacketInfo&
packetInfo)