mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
started refactor
This commit is contained in:
parent
750352836f
commit
3802d37d29
3 changed files with 34 additions and 300 deletions
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue