-
-
Notifications
You must be signed in to change notification settings - Fork 4
Exomia.Network.TCP
Daniel Baetz edited this page Oct 1, 2020
·
21 revisions
A TCP/UDP-Client build with the "Asynchronous Programming Model" (APM)
public class Exomia.Network.TCP.TcpClientApm
: TcpClientBase, IClient, IDisposable.ctor TcpClientApm(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
SendError BeginSend(PacketInfo& packetInfo)
Begins send data.
-
packetInfo- Information describing the packet.
void ReceiveAsync()A TCP client base.
public abstract class Exomia.Network.TCP.TcpClientBase
: ClientBase, IClient, IDisposable.ctor TcpClientBase(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
BigDataHandler _bigDataHandlerByte[] _bufferReadCircularBuffer _circularBufferUInt16 _payloadSizeUInt16 MaxPayloadSizevoid Receive(Byte[] buffer, Int32 bytesTransferred)Boolean TryCreateSocket(Socket& socket)A TCP-Client build with the "Event-based Asynchronous Pattern" (EAP)
public class Exomia.Network.TCP.TcpClientEap
: TcpClientBase, IClient, IDisposable.ctor TcpClientEap(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
SendError BeginSend(PacketInfo& packetInfo)
Begins send data.
-
packetInfo- Information describing the packet.
void ReceiveAsync()A TCP-Server build with the "Asynchronous Programming Model" (APM)
public abstract class Exomia.Network.TCP.TcpServerApmBase<TServerClient>
: TcpServerBase<TServerClient>, IServer<TServerClient>, IDisposable.ctor TcpServerApmBase`1(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
SendError BeginSendTo(Socket arg0, PacketInfo& packetInfo)void ListenAsync()A TCP server base.
public abstract class Exomia.Network.TCP.TcpServerBase<TServerClient>
: ServerBase<Socket, TServerClient>, IServer<TServerClient>, IDisposable.ctor TcpServerBase`1(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
UInt16 _payloadSizeUInt16 MaxPayloadSizevoid Configure()void OnAfterClientDisconnect(TServerClient client)Boolean OnRun(Int32 port, Socket& listener)void Receive(Socket socket, Byte[] buffer, Int32 bytesTransferred, ServerClientStateObject state)A TCP server client base.
public abstract class Exomia.Network.TCP.TcpServerClientBase
: ServerClientBase<Socket>, IServerClient.ctor TcpServerClientBase()A TCP-Server build with the "Event-based Asynchronous Pattern" (EAP)
public abstract class Exomia.Network.TCP.TcpServerEapBase<TServerClient>
: TcpServerBase<TServerClient>, IServer<TServerClient>, IDisposable.ctor TcpServerEapBase`1(UInt16 expectedMaxPayloadSize = 57320)
Initializes a new instance of the class.
-
expectedMaxPayloadSize- (Optional) Size of the expected maximum payload.
SendError BeginSendTo(Socket arg0, PacketInfo& packetInfo)void ListenAsync()