diff options
author | Joseph Henry <joseph.henry@zerotier.com> | 2015-09-10 15:46:37 -0400 |
---|---|---|
committer | Joseph Henry <joseph.henry@zerotier.com> | 2015-09-10 15:46:37 -0400 |
commit | 3802d37d2905a47d23da49237e24cbe7904d9f50 (patch) | |
tree | 36cb5a185fed1a20eda97fec31bb70913a173d0e /osdep | |
parent | 750352836f72c5dc0136b6aae96ec28f8fe356cb (diff) | |
download | infinitytier-3802d37d2905a47d23da49237e24cbe7904d9f50.tar.gz infinitytier-3802d37d2905a47d23da49237e24cbe7904d9f50.zip |
started refactor
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/Phy.hpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 79cd67e1..6827e50d 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -245,6 +245,25 @@ public: #endif } + + + + + inline void *getuptr(PhySocket *sock) + { + PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock)); + return sws.uptr; + } + + inline void setuptr(PhySocket *sock, void *obj) + { + PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock)); + sws.uptr = obj; + } + + + + /** * @return Number of open sockets */ |