diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-03-29 16:43:19 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2022-03-29 16:43:19 +0200 |
commit | 6d1d9f47edef8352c6f25d7736171ec2bbe5471a (patch) | |
tree | b9194956abb0f672c16b1136b90f59448cb86b75 /lib/Socket.h | |
parent | cf58fa375c003173215baf81b4b64cf4e5c1873c (diff) | |
download | dabmux-6d1d9f47edef8352c6f25d7736171ec2bbe5471a.tar.gz dabmux-6d1d9f47edef8352c6f25d7736171ec2bbe5471a.tar.bz2 dabmux-6d1d9f47edef8352c6f25d7736171ec2bbe5471a.zip |
Common: log timestamps, socket changes and frame_timestamp_t
Diffstat (limited to 'lib/Socket.h')
-rw-r--r-- | lib/Socket.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Socket.h b/lib/Socket.h index 08607a5..f5143a0 100644 --- a/lib/Socket.h +++ b/lib/Socket.h @@ -115,6 +115,7 @@ class UDPSocket void close(void); void send(UDPPacket& packet); void send(const std::vector<uint8_t>& data, InetAddress destination); + void send(const std::string& data, InetAddress destination); UDPPacket receive(size_t max_size); void joinGroup(const char* groupname, const char* if_addr = nullptr); void setMulticastSource(const char* source_addr); @@ -198,6 +199,8 @@ class TCPSocket { */ ssize_t recv(void *buffer, size_t length, int flags, int timeout_ms); + SOCKET get_sockfd() const { return m_sock; } + private: explicit TCPSocket(int sockfd); explicit TCPSocket(int sockfd, InetAddress remote_address); |