From 49f031ccb4d518e8a715777f5d848759bae0def8 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 7 Apr 2015 19:31:11 -0700 Subject: Tons of refactoring, change to desperation algorithm to use max of core or link, porting over core loop code from old Node.cpp to new CAPI version, etc. --- node/IncomingPacket.hpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'node/IncomingPacket.hpp') diff --git a/node/IncomingPacket.hpp b/node/IncomingPacket.hpp index ef25fbc4..bc727dee 100644 --- a/node/IncomingPacket.hpp +++ b/node/IncomingPacket.hpp @@ -70,15 +70,14 @@ public: /** * Create a new packet-in-decode * - * @param b Source buffer with raw packet data + * @param data Packet data + * @param len Packet length * @param remoteAddress Address from which packet came * @param linkDesperation Link desperation for link over which packet was received * @throws std::out_of_range Range error processing packet */ - template - IncomingPacket(const Buffer &b,const InetAddress &remoteAddress,unsigned int linkDesperation) - throw(std::out_of_range) : - Packet(b), + IncomingPacket(const void *data,unsigned int len,const InetAddress &remoteAddress,unsigned int linkDesperation) : + Packet(data,len), _receiveTime(Utils::now()), _remoteAddress(remoteAddress), _linkDesperation(linkDesperation), -- cgit v1.2.3