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

Method TIBClientServer

library/cpp/netliba/v6/ib_cs.cpp:744–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

742
743 public:
744 TIBClientServer(TPtrArg<TIBPort> port)
745 : Port(port)
746 , MemPool(GetIBMemPool())
747 , CQ(new TComplectionQueue(port->GetCtx(), MAX_CQ_EVENTS))
748 , BP(port->GetCtx(), MAX_SRQ_WORK_REQUESTS)
749 , WelcomeQP(new TUDQueuePair(port, CQ, BP.GetSRQ(), WELCOME_QP_SEND_SIZE))
750 , WelcomeQPN(WelcomeQP->GetQPN())
751 , MsgCounter(1)
752 {
753 CopyResults = new TIBMemPool::TCopyResultStorage;
754 CreateGuid(&ConnectInfo.SocketId);
755 ibv_gid addr;
756 port->GetGID(&addr);
757 ConnectInfo.Interface = addr.global.interface_id;
758 ConnectInfo.Subnet = addr.global.subnet_prefix;
759 //printf("connect addr subnet %lx, iface %lx\n", addr.global.subnet_prefix, addr.global.interface_id);
760 ConnectInfo.LID = port->GetLID();
761 ConnectInfo.QPN = WelcomeQPN;
762
763 WelcomeQP->Init(WELCOME_QKEY);
764
765 NHPTimer::GetTime(&LastCheckTime);
766 }
767 };
768
769 IIBClientServer* CreateIBClientServer() {

Callers

nothing calls this directly

Calls 8

CreateGuidFunction · 0.85
GetIBMemPoolFunction · 0.70
GetCtxMethod · 0.45
GetSRQMethod · 0.45
GetQPNMethod · 0.45
GetGIDMethod · 0.45
GetLIDMethod · 0.45
InitMethod · 0.45

Tested by

no test coverage detected