Rename PacketDecoder to much more descriptive IncomingPacket

This commit is contained in:
Adam Ierymenko 2014-09-24 09:04:09 -07:00
parent 9180a30986
commit 557801a09e
5 changed files with 29 additions and 29 deletions

View file

@ -25,8 +25,8 @@
* LLC. Start here: http://www.zerotier.com/
*/
#ifndef ZT_PACKETDECODER_HPP
#define ZT_PACKETDECODER_HPP
#ifndef ZT_INCOMINGPACKET_HPP
#define ZT_INCOMINGPACKET_HPP
#include <stdexcept>
@ -63,9 +63,9 @@ class Network;
/**
* Subclass of packet that handles the decoding of it
*/
class PacketDecoder : public Packet
class IncomingPacket : public Packet
{
friend class SharedPtr<PacketDecoder>;
friend class SharedPtr<IncomingPacket>;
public:
/**
@ -77,7 +77,7 @@ public:
* @throws std::out_of_range Range error processing packet
*/
template<unsigned int C2>
PacketDecoder(const Buffer<C2> &b,const SharedPtr<Socket> &fromSock,const InetAddress &remoteAddress)
IncomingPacket(const Buffer<C2> &b,const SharedPtr<Socket> &fromSock,const InetAddress &remoteAddress)
throw(std::out_of_range) :
Packet(b),
_receiveTime(Utils::now()),