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.
This commit is contained in:
parent
9e55f882d3
commit
49f031ccb4
14 changed files with 277 additions and 254 deletions
|
@ -361,6 +361,11 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
Fragment(const void *data,unsigned int len) :
|
||||
Buffer<ZT_PROTO_MAX_PACKET_LENGTH>(data,len)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Initialize from a packet
|
||||
*
|
||||
|
@ -793,12 +798,16 @@ public:
|
|||
throw();
|
||||
|
||||
template<unsigned int C2>
|
||||
Packet(const Buffer<C2> &b)
|
||||
throw(std::out_of_range) :
|
||||
Packet(const Buffer<C2> &b) :
|
||||
Buffer<ZT_PROTO_MAX_PACKET_LENGTH>(b)
|
||||
{
|
||||
}
|
||||
|
||||
Packet(const void *data,unsigned int len) :
|
||||
Buffer<ZT_PROTO_MAX_PACKET_LENGTH>(data,len)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Construct a new empty packet with a unique random packet ID
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue