Skip to content

Exomia.Network.TCP

Daniel Baetz edited this page Oct 1, 2020 · 21 revisions

TcpClientApm

A TCP/UDP-Client build with the "Asynchronous Programming Model" (APM)

public class Exomia.Network.TCP.TcpClientApm
    : TcpClientBase, IClient, IDisposable

Constructors

.ctor TcpClientApm(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

SendError BeginSend(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

void OnDispose(Boolean disposing)

Summary:

OnDispose.

Parameter:

  • disposing - disposing.

    void ReceiveAsync()

TcpClientBase

A TCP client base.

public abstract class Exomia.Network.TCP.TcpClientBase
    : ClientBase, IClient, IDisposable

Constructors

.ctor TcpClientBase(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Fields

    BigDataHandler _bigDataHandler
    Byte[] _bufferRead
    CircularBuffer _circularBuffer
    UInt16 _payloadSize

Properties

    UInt16 MaxPayloadSize

Methods

void Configure()

Summary:

Called after the
method directly after the socket is successfully created.


void OnDispose(Boolean disposing)

Summary:

OnDispose.

Parameter:

  • disposing - disposing.

    void Receive(Byte[] buffer, Int32 bytesTransferred)
    Boolean TryCreateSocket(Socket& socket)

TcpClientEap

A TCP-Client build with the "Event-based Asynchronous Pattern" (EAP)

public class Exomia.Network.TCP.TcpClientEap
    : TcpClientBase, IClient, IDisposable

Constructors

.ctor TcpClientEap(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

SendError BeginSend(PacketInfo& packetInfo)

Summary:

Begins send data.

Parameter:

  • packetInfo - Information describing the packet.

void OnDispose(Boolean disposing)

Summary:

OnDispose.

Parameter:

  • disposing - disposing.

    void ReceiveAsync()

TcpServerApmBase

A TCP-Server build with the "Asynchronous Programming Model" (APM)

public abstract class Exomia.Network.TCP.TcpServerApmBase<TServerClient>
    : TcpServerBase<TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor TcpServerApmBase`1(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

    SendError BeginSendTo(Socket arg0, PacketInfo& packetInfo)
    void ListenAsync()

TcpServerBase

A TCP server base.

public abstract class Exomia.Network.TCP.TcpServerBase<TServerClient>
    : ServerBase<Socket, TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor TcpServerBase`1(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Fields

    UInt16 _payloadSize

Properties

    UInt16 MaxPayloadSize

Methods

    void Configure()
    void OnAfterClientDisconnect(TServerClient client)
    Boolean OnRun(Int32 port, Socket& listener)
    void Receive(Socket socket, Byte[] buffer, Int32 bytesTransferred, ServerClientStateObject state)

TcpServerClientBase

A TCP server client base.

public abstract class Exomia.Network.TCP.TcpServerClientBase
    : ServerClientBase<Socket>, IServerClient

Constructors

    .ctor TcpServerClientBase()

Properties

IPAddress IPAddress

Summary:

Gets the IP address.



TcpServerEapBase

A TCP-Server build with the "Event-based Asynchronous Pattern" (EAP)

public abstract class Exomia.Network.TCP.TcpServerEapBase<TServerClient>
    : TcpServerBase<TServerClient>, IServer<TServerClient>, IDisposable

Constructors

.ctor TcpServerEapBase`1(UInt16 expectedMaxPayloadSize = 57320)

Summary:

Initializes a new instance of the class.

Parameter:

  • expectedMaxPayloadSize - (Optional) Size of the expected maximum payload.


Methods

    SendError BeginSendTo(Socket arg0, PacketInfo& packetInfo)
    void ListenAsync()

Clone this wiki locally