summaryrefslogtreecommitdiff
path: root/testnet/SimNetSocketManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'testnet/SimNetSocketManager.hpp')
-rw-r--r--testnet/SimNetSocketManager.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/testnet/SimNetSocketManager.hpp b/testnet/SimNetSocketManager.hpp
index 69f49556..82092b78 100644
--- a/testnet/SimNetSocketManager.hpp
+++ b/testnet/SimNetSocketManager.hpp
@@ -30,7 +30,7 @@
#include <map>
#include <utility>
-#include <queue>
+#include <vector>
#include "../node/Constants.hpp"
#include "../node/SocketManager.hpp"
@@ -98,7 +98,7 @@ public:
{
{
Mutex::Lock _l(_inbox_m);
- _inbox.push(std::pair< InetAddress,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> >(from,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN>(data,len)));
+ _inbox.push_back(std::pair< InetAddress,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> >(from,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN>(data,len)));
}
_waitCond.signal();
}
@@ -116,7 +116,7 @@ private:
SharedPtr<Socket> _mySocket;
TransferStats _totals;
- std::queue< std::pair< InetAddress,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> > > _inbox;
+ std::vector< std::pair< InetAddress,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> > > _inbox;
Mutex _inbox_m;
std::map< InetAddress,TransferStats > _stats;