started refactor

This commit is contained in:
Joseph Henry 2015-09-10 15:46:37 -04:00
commit 3802d37d29
3 changed files with 34 additions and 300 deletions

View file

@ -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
*/