Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Completed the list of per-member socket options #1470

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions srtcore/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1330,16 +1330,37 @@ bool SRT_SocketOptionObject::add(SRT_SOCKOPT optname, const void* optval, size_t

switch (optname)
{
case SRTO_SNDBUF:
case SRTO_RCVBUF:
case SRTO_UDP_RCVBUF:
case SRTO_UDP_SNDBUF:
case SRTO_SNDDROPDELAY:
case SRTO_NAKREPORT:
case SRTO_CONNTIMEO:
case SRTO_DRIFTTRACER:
//SRTO_FC - not allowed to be different among group members
case SRTO_GROUPSTABTIMEO:
//SRTO_INPUTBW - per transmission setting
case SRTO_IPTOS:
case SRTO_IPTTL:
case SRTO_KMREFRESHRATE:
case SRTO_KMPREANNOUNCE:
//SRTO_LATENCY - per transmission setting
//SRTO_LINGER - not for managed sockets
case SRTO_LOSSMAXTTL:
//SRTO_MAXBW - per transmission setting
//SRTO_MESSAGEAPI - groups are live mode only
//SRTO_MINVERSION - per group connection setting
case SRTO_NAKREPORT:
//SRTO_OHEADBW - per transmission setting
//SRTO_PACKETFILTER - per transmission setting
//SRTO_PASSPHRASE - per group connection setting
//SRTO_PASSPHRASE - per transmission setting
//SRTO_PBKEYLEN - per group connection setting
case SRTO_PEERIDLETIMEO:
case SRTO_GROUPSTABTIMEO:
case SRTO_RCVBUF:
//SRTO_RCVSYN - must be always false in groups
//SRTO_RCVTIMEO - must be alwyas -1 in groups
case SRTO_SNDBUF:
case SRTO_SNDDROPDELAY:
//SRTO_TLPKTDROP - per transmission setting
//SRTO_TSBPDMODE - per transmission setting
case SRTO_UDP_RCVBUF:
case SRTO_UDP_SNDBUF:
break;

default:
Expand Down