diff options
| author | Joseph Henry <joseph.henry@gmail.com> | 2015-10-29 17:57:59 -0700 |
|---|---|---|
| committer | Joseph Henry <joseph.henry@gmail.com> | 2015-10-29 17:57:59 -0700 |
| commit | 96eb0ce49262b5a8a7a99993733d52dbcf135f01 (patch) | |
| tree | d522bd305a833b12309421fa05e4bcf783284326 /osdep | |
| parent | f6e0bdb2f2a518310d4875ffb608d08ed8442aa4 (diff) | |
| download | infinitytier-96eb0ce49262b5a8a7a99993733d52dbcf135f01.tar.gz infinitytier-96eb0ce49262b5a8a7a99993733d52dbcf135f01.zip | |
Added state dump, fixed numerous RPC related bugs
Diffstat (limited to 'osdep')
| -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 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<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 * |
