summaryrefslogtreecommitdiff
path: root/node/IncomingPacket.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-27 17:09:04 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-06-27 17:09:04 -0700
commit45f315e603fdc1330bcce7458ac3975520db2613 (patch)
tree451f61be1bb5f400bb23b5601421d848c8921754 /node/IncomingPacket.hpp
parentb9e86103cf300aa56a59e9c781587a4ba8172457 (diff)
downloadinfinitytier-45f315e603fdc1330bcce7458ac3975520db2613.tar.gz
infinitytier-45f315e603fdc1330bcce7458ac3975520db2613.zip
Defer NETWORK_CONFIG_REQUEST packets and allow multithreaded processing.
Diffstat (limited to 'node/IncomingPacket.hpp')
-rw-r--r--node/IncomingPacket.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/node/IncomingPacket.hpp b/node/IncomingPacket.hpp
index 96e46c00..3be49bf8 100644
--- a/node/IncomingPacket.hpp
+++ b/node/IncomingPacket.hpp
@@ -58,7 +58,8 @@ public:
Packet(),
_receiveTime(0),
_localAddress(),
- _remoteAddress()
+ _remoteAddress(),
+ _authenticated(false)
{
}
@@ -79,10 +80,11 @@ public:
* @throws std::out_of_range Range error processing packet
*/
IncomingPacket(const void *data,unsigned int len,const InetAddress &localAddress,const InetAddress &remoteAddress,uint64_t now) :
- Packet(data,len),
- _receiveTime(now),
- _localAddress(localAddress),
- _remoteAddress(remoteAddress)
+ Packet(data,len),
+ _receiveTime(now),
+ _localAddress(localAddress),
+ _remoteAddress(remoteAddress),
+ _authenticated(false)
{
}
@@ -188,6 +190,7 @@ private:
uint64_t _receiveTime;
InetAddress _localAddress;
InetAddress _remoteAddress;
+ bool _authenticated;
};
} // namespace ZeroTier