mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 04:52:17 +02:00
rename return of HifiSockAddr objects for connections
This commit is contained in:
parent
d89c54112d
commit
2ec4d8ff3c
3 changed files with 4 additions and 4 deletions
|
@ -237,7 +237,7 @@ ConnectionStats::Stats Socket::sampleStatsForConnection(const HifiSockAddr& dest
|
|||
}
|
||||
}
|
||||
|
||||
std::vector<HifiSockAddr> Socket::getSockAddr() {
|
||||
std::vector<HifiSockAddr> Socket::getConnectionSockAddrs() {
|
||||
std::vector<HifiSockAddr> addr;
|
||||
addr.reserve(_connectionsHash.size());
|
||||
for (const auto& connectionPair : _connectionsHash) {
|
||||
|
|
|
@ -65,7 +65,7 @@ public:
|
|||
void connectToSendSignal(const HifiSockAddr& destinationAddr, QObject* receiver, const char* slot);
|
||||
|
||||
ConnectionStats::Stats sampleStatsForConnection(const HifiSockAddr& destination);
|
||||
std::vector<HifiSockAddr> getSockAddr();
|
||||
std::vector<HifiSockAddr> getConnectionSockAddrs();
|
||||
|
||||
private slots:
|
||||
void readPendingDatagrams();
|
||||
|
@ -83,7 +83,7 @@ private:
|
|||
std::unordered_map<HifiSockAddr, SequenceNumber> _unreliableSequenceNumbers;
|
||||
std::unordered_map<HifiSockAddr, std::unique_ptr<Connection>> _connectionsHash;
|
||||
|
||||
int32_t _synInterval = 10; // 10ms
|
||||
int _synInterval = 10; // 10ms
|
||||
QTimer _synTimer;
|
||||
|
||||
std::unique_ptr<CongestionControlVirtualFactory> _ccFactory { new CongestionControlFactory<DefaultCC>() };
|
||||
|
|
|
@ -264,7 +264,7 @@ void UDTTest::sampleStats() {
|
|||
first = false;
|
||||
}
|
||||
|
||||
auto sockets = _socket.getSockAddr();
|
||||
auto sockets = _socket.getConnectionSockAddrs();
|
||||
if (sockets.size() > 0) {
|
||||
udt::ConnectionStats::Stats stats = _socket.sampleStatsForConnection(sockets.front());
|
||||
|
||||
|
|
Loading…
Reference in a new issue