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

Method TIBClientServer

library/cpp/netliba/v12/ib_cs.cpp:752–774  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

750
751 public:
752 TIBClientServer(TPtrArg<TIBPort> port)
753 : Port(port)
754 , MemPool(GetIBMemPool())
755 , CQ(new TComplectionQueue(port->GetCtx(), MAX_CQ_EVENTS))
756 , BP(port->GetCtx(), MAX_SRQ_WORK_REQUESTS)
757 , WelcomeQP(new TUDQueuePair(port, CQ, BP.GetSRQ(), WELCOME_QP_SEND_SIZE))
758 , WelcomeQPN(WelcomeQP->GetQPN())
759 , MsgCounter(1)
760 {
761 CopyResults = new TIBMemPool::TCopyResultStorage;
762 CreateGuid(&ConnectInfo.SocketId);
763 ibv_gid addr;
764 port->GetGID(&addr);
765 ConnectInfo.Interface = addr.global.interface_id;
766 ConnectInfo.Subnet = addr.global.subnet_prefix;
767 //printf("connect addr subnet %lx, iface %lx\n", addr.global.subnet_prefix, addr.global.interface_id);
768 ConnectInfo.LID = port->GetLID();
769 ConnectInfo.QPN = WelcomeQPN;
770
771 WelcomeQP->Init(WELCOME_QKEY);
772
773 NHPTimer::GetTime(&LastCheckTime);
774 }
775 };
776
777 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