Skip to content

Commit

Permalink
Updated documentation. Fixed unused warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Malecki committed Dec 23, 2024
1 parent cd3376b commit 8f3d969
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/API/API-socket-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,8 @@ See [`SRTO_INPUTBW`](#SRTO_INPUTBW).
IPv4 Type of Service (see `IP_TOS` option for IP) or IPv6 Traffic Class (see `IPV6_TCLASS`
of IPv6) depending on socket address family. Applies to sender only.

NOTE: This option has been tested to work correctly on Linux only.

When *getting*, the returned value is the user preset for non-connected sockets
and the actual value for connected sockets.

Expand All @@ -632,6 +634,8 @@ and the actual value for connected sockets.
IPv4 Time To Live (see `IP_TTL` option for IP) or IPv6 unicast hops (see
`IPV6_UNICAST_HOPS` for IPv6) depending on socket address family. Applies to sender only.

NOTE: This option has been tested to work correctly on Linux only.

When *getting*, the returned value is the user preset for non-connected sockets
and the actual value for connected sockets.

Expand Down
2 changes: 1 addition & 1 deletion srtcore/channel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ void srt::CChannel::setUDPSockOpt()
{
// If IPv6 address is unspecified, set BOTH IP_TOS and IPV6_TCLASS.

bool using_tclass = false;
SRT_ATR_UNUSED bool using_tclass = false;
#ifdef IPV6_TCLASS
using_tclass = true;
// For specified IPv6 address, set IPV6_TCLASS ONLY UNLESS it's an IPv4-mapped-IPv6
Expand Down

0 comments on commit 8f3d969

Please sign in to comment.