openfresh / gosrt

Go SRT library with the net package like API.
MIT License
66 stars 16 forks source link

Include new version of socket flags #6

Closed mauricioabreu closed 4 years ago

mauricioabreu commented 4 years ago

New functions do not receive the level parameter.

More info here: https://github.com/Haivision/srt/blob/master/docs/API.md#synopsis-4

Legacy version:

int srt_getsockopt(SRTSOCKET socket, int level, SRT_SOCKOPT optName, void* optval, int& optlen);
int srt_setsockopt(SRTSOCKET socket, int level, SRT_SOCKOPT optName, const void* optval, int optlen);

New version:

int srt_getsockflag(SRTSOCKET socket, SRT_SOCKOPT optName, void* optval, int& optlen);
int srt_setsockflag(SRTSOCKET socket, SRT_SOCKOPT optName, const void* optval, int optlen);
thmatuza commented 4 years ago

Thank you! I am so sorry for late response.