| 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; |
nothing calls this directly
no test coverage detected