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

Method TConnection

library/cpp/netliba/v12/udp_host_connection.h:602–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600 class TConnection: public IConnection, public TActiveConnectionListItem<TConnection> {
601 public:
602 TConnection(const TUdpAddress& address, const TUdpAddress& myAddress, const TConnectionSettings& connectionSettings, const TGUID& guid, float udpTransferTimeout)
603 : Address(address)
604 , MyAddress(myAddress)
605 , Guid(guid)
606 , Stats(new TRequesterPendingDataStats)
607 , SmallMtuUseXs(false)
608 , TransferId(1) // start with 1, do not use 0
609 , PeerLink(address, connectionSettings, udpTransferTimeout)
610 {
611 Y_ASSERT(!Guid.IsEmpty());
612 GetWinsockAddr(&WinsockAddress, address);
613 GetWinsockAddr(&WinsockMyAddress, myAddress);
614 CreateGuid(&ThisSideGuid);
615 NHPTimer::GetTime(&CurrentTime);
616 }
617
618 const TUdpAddress& GetAddress() const override {
619 return Address;

Callers

nothing calls this directly

Calls 3

CreateGuidFunction · 0.85
GetWinsockAddrFunction · 0.70
IsEmptyMethod · 0.45

Tested by

no test coverage detected