summaryrefslogtreecommitdiff
path: root/osdep
diff options
context:
space:
mode:
Diffstat (limited to 'osdep')
-rw-r--r--osdep/Phy.hpp19
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
*/