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

Method FastSocket

util/network/nonblock.cpp:72–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 }
71
72 inline SOCKET FastSocket(int domain, int type, int protocol) const {
73#if defined(SOCK_NONBLOCK)
74 if (HaveSockNonBlock) {
75 return socket(domain, type | SOCK_NONBLOCK, protocol);
76 }
77#endif
78
79 const SOCKET ret = socket(domain, type, protocol);
80
81 if (ret != INVALID_SOCKET) {
82 SetNonBlock(ret);
83 }
84
85 return ret;
86 }
87
88 static inline const TFeatureCheck* Instance() noexcept {
89 return Singleton<TFeatureCheck>();

Callers 1

Socket4Function · 0.80

Calls 1

SetNonBlockFunction · 0.85

Tested by

no test coverage detected