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

Method DoRead

util/network/socket.cpp:903–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

901TSocketInput::~TSocketInput() = default;
902
903size_t TSocketInput::DoRead(void* buf, size_t len) {
904 const ssize_t ret = S_.Recv(buf, len);
905
906 if (ret >= 0) {
907 return (size_t)ret;
908 }
909
910 ythrow TSystemError(-(int)ret) << "can not read from socket input stream";
911}
912
913TSocketOutput::TSocketOutput(const TSocket& s) noexcept
914 : S_(s)

Callers

nothing calls this directly

Calls 1

RecvMethod · 0.45

Tested by

no test coverage detected