Skip to content

Commit

Permalink
[core] Removed settable ability for SRTO_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikołaj Małecki authored and maxsharabayko committed Jun 26, 2024
1 parent b7c8050 commit 36260c3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions srtcore/socketconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,15 +559,6 @@ struct CSrtConfigSetter<SRTO_LOSSMAXTTL>
}
};

template<>
struct CSrtConfigSetter<SRTO_VERSION>
{
static void set(CSrtConfig& co, const void* optval, int optlen)
{
co.uSrtVersion = cast_optval<uint32_t>(optval, optlen);
}
};

template<>
struct CSrtConfigSetter<SRTO_MINVERSION>
{
Expand Down Expand Up @@ -971,7 +962,6 @@ int dispatchSet(SRT_SOCKOPT optName, CSrtConfig& co, const void* optval, int opt
DISPATCH(SRTO_CONNTIMEO);
DISPATCH(SRTO_DRIFTTRACER);
DISPATCH(SRTO_LOSSMAXTTL);
DISPATCH(SRTO_VERSION);
DISPATCH(SRTO_MINVERSION);
DISPATCH(SRTO_STREAMID);
DISPATCH(SRTO_CONGESTION);
Expand Down

0 comments on commit 36260c3

Please sign in to comment.