diff options
Diffstat (limited to 'osdep/Phy.hpp')
-rw-r--r-- | osdep/Phy.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 1ba6c40b..84d154a3 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -244,6 +244,14 @@ public: */ static inline ZT_PHY_SOCKFD_TYPE getDescriptor(PhySocket *s) throw() { return reinterpret_cast<PhySocketImpl *>(s)->sock; } + + /** + * @param s Socket object + * @return Pointer to user object + */ + static inline void** getuptr(PhySocket *s) throw() { return &(reinterpret_cast<PhySocketImpl *>(s)->uptr); } + + /** * Cause poll() to stop waiting immediately * |