Socket library and Config library restructuring, improvement to UDP socket reliability

This commit is contained in:
Thulinma 2020-06-25 23:34:26 +02:00
parent 97752f2c2d
commit 3d26741148
37 changed files with 151 additions and 110 deletions

View file

@ -15,6 +15,7 @@
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include "util.h"
#ifdef SSL
#include "mbedtls/ctr_drbg.h"
@ -195,14 +196,13 @@ namespace Socket{
unsigned int destAddr_size; ///< Size of the destination address pointer.
unsigned int up; ///< Amount of bytes transferred up.
unsigned int down; ///< Amount of bytes transferred down.
unsigned int data_size; ///< The size in bytes of the allocated space in the data pointer.
int family; ///< Current socket address family
std::string boundAddr, boundMulti;
int boundPort;
void checkRecvBuf();
public:
char *data; ///< Holds the last received packet.
unsigned int data_len; ///< The size in bytes of the last received packet.
Util::ResizeablePointer data;
UDPConnection(const UDPConnection &o);
UDPConnection(bool nonblock = false);
~UDPConnection();