rename return of HifiSockAddr objects for connections

This commit is contained in:
Stephen Birarda 2015-08-17 16:38:59 -07:00
parent d89c54112d
commit 2ec4d8ff3c
3 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -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>() };

View file

@ -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());