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

Function CheckedSetSockOpt

util/network/socket.h:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73template <class T>
74static inline void CheckedSetSockOpt(SOCKET s, int level, int optname, T opt, const char* err) {
75 if (SetSockOpt<T>(s, level, optname, opt)) {
76 ythrow TSystemError() << "setsockopt() failed for " << err;
77 }
78}
79
80template <class T>
81static inline void CheckedGetSockOpt(SOCKET s, int level, int optname, T& opt, const char* err) {

Callers 15

TOneSocketListenerMethod · 0.85
BindMethod · 0.85
SetSockOptMethod · 0.85
SetSocketTimeoutFunction · 0.85
SetLingerFunction · 0.85
SetKeepAliveFunction · 0.85
SetOutputBufferFunction · 0.85
SetInputBufferFunction · 0.85
SetReusePortFunction · 0.85
SetNoDelayFunction · 0.85
SetSocketToSFunction · 0.85
SetSocketPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected