From 668c428051706e33a1d5a411a1b446ca865a4854 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 23 Jul 2013 22:46:04 -0700 Subject: Basic RPC stuff in Packet and PacketDecoder for RPC service support. --- node/PacketDecoder.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node/PacketDecoder.cpp') 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) +{ +} + } // namespace ZeroTier -- cgit v1.2.3