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

Method CloseImpl

library/cpp/netliba/socket/socket.cpp:501–507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

499 }
500
501 void TAbstractSocket::CloseImpl() {
502 if (IsValid()) {
503 Poller.Unwait(S);
504 Y_ABORT_UNLESS(closesocket(S) == 0, "closesocket failed: %s (errno = %d)", LastSystemErrorText(), LastSystemError());
505 }
506 S = INVALID_SOCKET;
507 }
508
509 void TAbstractSocket::WaitImpl(float timeoutSec) const {
510 Y_ABORT_UNLESS(IsValid(), "something went wrong");

Callers

nothing calls this directly

Calls 4

IsValidFunction · 0.85
LastSystemErrorFunction · 0.85
UnwaitMethod · 0.80
LastSystemErrorTextFunction · 0.50

Tested by

no test coverage detected