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

Method ProcessIBRequest

library/cpp/netliba/v12/udp_host.cpp:507–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505 }
506
507 bool TUdpHost::ProcessIBRequest() {
508 if (IB.Get()) {
509 TAutoPtr<TIBRequest> r = IB->GetRequest();
510 if (!!r) {
511 const TIntrusivePtr<IConnection>* connection = Connections.FindPtr(r->ConnectionGuid);
512 Y_ASSERT(connection); // hmm, old connection?
513 TUdpRequest* result = nullptr;
514 if (connection) {
515 result = new TUdpRequest;
516 result->IsHighPriority = false;
517 result->Connection = *connection;
518 result->Data = r->Data;
519 }
520 ReceivedClientQueue.Enqueue(result);
521 Event.Signal();
522 return true;
523 }
524 }
525 return false;
526 }
527
528 void TUdpHost::ProcessIBSendResults() {
529 if (IB.Get()) {

Callers

nothing calls this directly

Calls 5

GetMethod · 0.45
GetRequestMethod · 0.45
FindPtrMethod · 0.45
EnqueueMethod · 0.45
SignalMethod · 0.45

Tested by

no test coverage detected