From 80113247f1255d6d5ace561e932febdf3a337596 Mon Sep 17 00:00:00 2001 From: Maxim Sharabayko Date: Tue, 25 Feb 2020 13:24:12 +0100 Subject: [PATCH] [apps] Added rcvbuf and sndbuf UDP socket options --- apps/transmitmedia.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/transmitmedia.cpp b/apps/transmitmedia.cpp index f8ec97334..6b706ba65 100644 --- a/apps/transmitmedia.cpp +++ b/apps/transmitmedia.cpp @@ -751,7 +751,9 @@ Iface* CreateConsole() { return new typename Console::type (); } SocketOption udp_options [] { { "iptos", IPPROTO_IP, IP_TOS, SocketOption::PRE, SocketOption::INT, nullptr }, // IP_TTL and IP_MULTICAST_TTL are handled separately by a common option, "ttl". - { "mcloop", IPPROTO_IP, IP_MULTICAST_LOOP, SocketOption::PRE, SocketOption::INT, nullptr } + { "mcloop", IPPROTO_IP, IP_MULTICAST_LOOP, SocketOption::PRE, SocketOption::INT, nullptr }, + { "sndbuf", SOL_SOCKET, SO_SNDBUF, SocketOption::PRE, SocketOption::INT, nullptr}, + { "rcvbuf", SOL_SOCKET, SO_RCVBUF, SocketOption::PRE, SocketOption::INT, nullptr} }; static inline bool IsMulticast(in_addr adr)