9 #ifndef _TurtleBrains_SocketConnectionInterface_h_
10 #define _TurtleBrains_SocketConnectionInterface_h_
12 #include "../../core/tb_configuration.h"
13 #if defined(tb_with_networking)
15 #include "../../core/tb_noncopyable.h"
16 #include "../../core/tb_types.h"
28 class PacketHandlerInterface;
30 enum class SocketConnectionType
45 explicit SocketConnection(
const SocketConnectionType& connectionType, PacketHandlerInterface& packetHandler);
46 ~SocketConnection(
void);
54 void Disconnect(
void);
59 bool IsConnected(
void)
const;
73 bool SendPacket(
const tbCore::byte*
const packetData,
const size_t& packetSize);
87 tbImplementation::SocketConnectionImplementation* mImplementation;
uint16_t uint16
Unsigned integer with a size of 16 bits. Supports values from 0 to 65535.
Definition: tb_types.h:26
Definition: tb_noncopyable.h:22
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
uint8 byte
Unsigned integer with 8 bits (1 byte). Supports 256 values from 0 to 255.
Definition: tb_types.h:24
std::string tbString
Definition: tb_string.h:335
Definition: tb_http_request.h:27
Definition: tb_application_dialog.h:19