MCPcopy Create free account
hub / github.com/catboost/catboost / SetSockOpt

Function SetSockOpt

util/network/socket.h:62–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60
61template <class T>
62static inline int SetSockOpt(SOCKET s, int level, int optname, T opt) noexcept {
63 return setsockopt(s, level, optname, (const char*)&opt, sizeof(opt));
64}
65
66template <class T>
67static inline int GetSockOpt(SOCKET s, int level, int optname, T& opt) noexcept {

Callers 13

CreateSocketMethod · 0.85
ForbidFragmentationMethod · 0.85
EnableFragmentationMethod · 0.85
SendMsgMethod · 0.85
IncreaseSendBuffMethod · 0.85
SetCommonSockOptsFunction · 0.85
OnReadSomeMethod · 0.85
SetReuseAddressAndPortFunction · 0.85
IsFreePortFunction · 0.85
TEST_FFunction · 0.85
FixIPv6ListenSocketFunction · 0.85
TTcpFastOpenFeatureMethod · 0.85

Calls

no outgoing calls

Tested by 2

SetReuseAddressAndPortFunction · 0.68
IsFreePortFunction · 0.68