diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-23 22:46:04 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-23 22:46:04 -0700 |
| commit | 668c428051706e33a1d5a411a1b446ca865a4854 (patch) | |
| tree | 07c80e0e5b750efb3da385e89d3e27ead83a5ce6 /node/PacketDecoder.cpp | |
| parent | 10fc164fcbdeb678e224019d860738d016b6f030 (diff) | |
| download | infinitytier-668c428051706e33a1d5a411a1b446ca865a4854.tar.gz infinitytier-668c428051706e33a1d5a411a1b446ca865a4854.zip | |
Basic RPC stuff in Packet and PacketDecoder for RPC service support.
Diffstat (limited to 'node/PacketDecoder.cpp')
| -rw-r--r-- | node/PacketDecoder.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node/PacketDecoder.cpp b/node/PacketDecoder.cpp index 810e30a7..e081fa8e 100644 --- a/node/PacketDecoder.cpp +++ b/node/PacketDecoder.cpp @@ -102,6 +102,8 @@ bool PacketDecoder::tryDecode(const RuntimeEnvironment *_r) return _doMULTICAST_LIKE(_r,peer); case Packet::VERB_MULTICAST_FRAME: return _doMULTICAST_FRAME(_r,peer); + case Packet::VERB_RPC: + return _doRPC(_r,peer); default: // This might be something from a new or old version of the protocol. // Technically it passed HMAC so the packet is still valid, but we @@ -538,4 +540,8 @@ bool PacketDecoder::_doMULTICAST_FRAME(const RuntimeEnvironment *_r,const Shared return true; } +bool PacketDecoder::_doRPC(const RuntimeEnvironment *_r,const SharedPtr<Peer> &peer) +{ +} + } // namespace ZeroTier |
