From 96eb0ce49262b5a8a7a99993733d52dbcf135f01 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 29 Oct 2015 17:57:59 -0700 Subject: Added state dump, fixed numerous RPC related bugs --- osdep/Phy.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'osdep') diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index df20bb40..c7b2a340 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -238,6 +238,14 @@ public: */ static inline ZT_PHY_SOCKFD_TYPE getDescriptor(PhySocket *s) throw() { return reinterpret_cast(s)->sock; } + + /** + * @param s Socket object + * @return Pointer to user object + */ + static inline void** getuptr(PhySocket *s) throw() { return &(reinterpret_cast(s)->uptr); } + + /** * Cause poll() to stop waiting immediately * -- cgit v1.2.3