Skip to content

Commit

Permalink
[apps] Added rcvbuf and sndbuf UDP socket options
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Feb 26, 2020
1 parent 93d7601 commit 8011324
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/transmitmedia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,9 @@ Iface* CreateConsole() { return new typename Console<Iface>::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)
Expand Down

0 comments on commit 8011324

Please sign in to comment.