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/Packet.hpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'node/Packet.hpp') diff --git a/node/Packet.hpp b/node/Packet.hpp index 20a5b145..d79ba2bd 100644 --- a/node/Packet.hpp +++ b/node/Packet.hpp @@ -361,6 +361,11 @@ public: { } + Fragment(const void *data,unsigned int len) : + Buffer(data,len) + { + } + /** * Initialize from a packet * @@ -793,12 +798,16 @@ public: throw(); template - Packet(const Buffer &b) - throw(std::out_of_range) : + Packet(const Buffer &b) : Buffer(b) { } + Packet(const void *data,unsigned int len) : + Buffer(data,len) + { + } + /** * Construct a new empty packet with a unique random packet ID * -- cgit v1.2.3