Client Setup

[TCP/UDP] ClientConnectionContainer

The ClientConnectionContainer contains a TCP and a UDP connection by default. In addition the ClientConnectionContainer supports:

  1. Reconnecting if the TCP and/or the UDP connection has been lost
  2. Offering various methods to send data (async, fast, slow)
  3. Buffering packets if there is no available connection
  4. Remember your settings and packet-configurations after a reconnect

Is the ClientConnectionContainer too heavy? Or don’t you need a UDPConnection? Check out the following methods to establish TCP/UDP connections without the container.

[TCP] Method 1

connectionResult contains the information about the current connection state.

[TCP] Method 2 (async)

[UDP] Method 1

[UDP] Method 2 (async)

 

Diese Website verwendet Akismet, um Spam zu reduzieren. Erfahre mehr darüber, wie deine Kommentardaten verarbeitet werden.