aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/Socket.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-12-04 08:41:09 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-12-04 08:41:09 +0100
commitcd7b439f4c70230fa88f84843a23468e399d6029 (patch)
treeeb687dc6f00b21d312ee1a2b00766ab24bc73ae2 /contrib/Socket.h
parent20d3b59de3aa330059139d54a40c368230683a7b (diff)
downloadODR-AudioEnc-next.tar.gz
ODR-AudioEnc-next.tar.bz2
ODR-AudioEnc-next.zip
common: Update Socketnext
Diffstat (limited to 'contrib/Socket.h')
-rw-r--r--contrib/Socket.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/Socket.h b/contrib/Socket.h
index ab2a14a..7709145 100644
--- a/contrib/Socket.h
+++ b/contrib/Socket.h
@@ -31,9 +31,11 @@
#include "ThreadsafeQueue.h"
#include <cstdlib>
#include <atomic>
-#include <string>
+#include <chrono>
#include <list>
#include <memory>
+#include <optional>
+#include <string>
#include <thread>
#include <vector>
@@ -236,6 +238,8 @@ class TCPClient {
TCPSocket m_sock;
std::string m_hostname;
int m_port;
+
+ std::optional<std::chrono::steady_clock::time_point> m_last_received_packet_ts;
};
/* Helper class for TCPDataDispatcher, contains a queue of pending data and