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

Method OnCanRead

library/cpp/neh/tcp2.cpp:1222–1229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1220
1221 private:
1222 void OnCanRead(const TErrorCode& ec, IHandlingContext& ctx) {
1223 if (ec) {
1224 OnError();
1225 } else {
1226 TErrorCode ec2;
1227 OnReadSome(ec2, AS_->ReadSome(Buff_.Get(), BuffSize_, ec2), ctx);
1228 }
1229 }
1230
1231 void OnError() {
1232 DBGOUT("Srv OnError(" << (!AS_ ? -666 : AS_->Native()) << ")"

Callers

nothing calls this directly

Calls 2

ReadSomeMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected