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

Method Schedule

library/cpp/neh/udp.cpp:615–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

613 }
614
615 inline void Schedule(const TMessage& msg, const TNotifyHandleRef& hndl) {
616 TParsedLocation loc(msg.Addr);
617 const TNetworkAddress* addr = &CachedThrResolve(TResolveInfo(loc.Host, loc.GetPort()))->Addr;
618
619 for (TNetworkAddress::TIterator ai = addr->Begin(); ai != addr->End(); ++ai) {
620 TProto* proto = Find(ai->ai_family);
621
622 if (proto) {
623 TRequestPacket rp(ToString(loc.Service), msg.Data);
624 TRequestDescrRef rd(new TRequestDescr(rp.Guid, hndl, msg));
625 IRemoteAddrPtr raddr(new TAddrInfo(&*ai));
626 TPacketRef p(new TPacket(rp, std::move(raddr)));
627
628 proto->Schedule(rd, p);
629
630 return;
631 }
632 }
633
634 ythrow yexception() << "unsupported protocol family";
635 }
636
637 private:
638 inline void Init(IOnRequest* cb, TSockets& s) {

Callers

nothing calls this directly

Calls 9

CachedThrResolveFunction · 0.85
TResolveInfoClass · 0.85
FindFunction · 0.50
ToStringFunction · 0.50
moveFunction · 0.50
GetPortMethod · 0.45
BeginMethod · 0.45
EndMethod · 0.45
ScheduleMethod · 0.45

Tested by

no test coverage detected