diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 13:56:48 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-03-19 13:56:48 -0700 |
| commit | abc82d6a52a75a30040fb4a458751a664a625c0a (patch) | |
| tree | fe2f1cb05521fcc0da0472a572755829924d49c4 /node/PacketDecoder.hpp | |
| parent | acf7d70d241c6afc1f3f13fb7b678882f1ec3ea5 (diff) | |
| download | infinitytier-abc82d6a52a75a30040fb4a458751a664a625c0a.tar.gz infinitytier-abc82d6a52a75a30040fb4a458751a664a625c0a.zip | |
IPC changes and SocketManager changes all build!
Diffstat (limited to 'node/PacketDecoder.hpp')
| -rw-r--r-- | node/PacketDecoder.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/node/PacketDecoder.hpp b/node/PacketDecoder.hpp index 26aa85ce..9552c7fe 100644 --- a/node/PacketDecoder.hpp +++ b/node/PacketDecoder.hpp @@ -37,6 +37,7 @@ #include "SharedPtr.hpp" #include "AtomicCounter.hpp" #include "Peer.hpp" +#include "Socket.hpp" /* * The big picture: @@ -70,16 +71,16 @@ public: * Create a new packet-in-decode * * @param b Source buffer with raw packet data - * @param localPort Local port on which packet was received + * @param fromSock Socket on which packet was received * @param remoteAddress Address from which packet came * @throws std::out_of_range Range error processing packet */ template<unsigned int C2> - PacketDecoder(const Buffer<C2> &b,Demarc::Port localPort,const InetAddress &remoteAddress) + PacketDecoder(const Buffer<C2> &b,const SharedPtr<Socket> &fromSock,const InetAddress &remoteAddress) throw(std::out_of_range) : Packet(b), _receiveTime(Utils::now()), - _localPort(localPort), + _fromSock(fromSock), _remoteAddress(remoteAddress), _step(DECODE_WAITING_FOR_SENDER_LOOKUP), __refCount() @@ -124,7 +125,7 @@ private: bool _doNETWORK_CONFIG_REFRESH(const RuntimeEnvironment *_r,const SharedPtr<Peer> &peer); uint64_t _receiveTime; - Demarc::Port _localPort; + SharedPtr<Socket> _fromSock; InetAddress _remoteAddress; enum { |
