trim headers and unused code in IXUdpSocket

This commit is contained in:
Benjamin Sergeant
2020-03-22 21:51:41 -07:00
parent b7e7837d76
commit f72f845ad2
5 changed files with 24 additions and 74 deletions

View File

@@ -6,7 +6,6 @@
#pragma once
#include <ixwebsocket/IXNetSystem.h>
#include <ixwebsocket/IXUdpSocket.h>
#include <string>
@@ -15,9 +14,10 @@
#include <mutex>
#include <atomic>
namespace ix {
class StatsdClient {
namespace ix
{
class StatsdClient
{
public:
StatsdClient(const std::string& host="127.0.0.1",
int port=8125,
@@ -55,8 +55,8 @@ namespace ix {
std::thread _thread;
std::mutex _mutex; // for the queue
std::deque<std::string> batching_message_queue_;
const uint64_t max_batching_size = 32768;
std::deque<std::string> _queue;
static const uint64_t _maxQueueSize;
};
} // end namespace ix