mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Modified PCB/state management logic
This commit is contained in:
parent
bdabe40c65
commit
c3e2cb9b8e
7 changed files with 108 additions and 84 deletions
|
@ -137,6 +137,8 @@ private:
|
|||
void phyOnFileDescriptorActivity(PhySocket *sock,void **uptr,bool readable,bool writable);
|
||||
|
||||
TcpConnection *getConnection(PhySocket *sock);
|
||||
void addConnection(TcpConnection *conn);
|
||||
void removeConnection(TcpConnection *conn);
|
||||
void closeConnection(PhySocket *sock);
|
||||
|
||||
ip_addr_t convert_ip(struct sockaddr_in * addr)
|
||||
|
@ -171,7 +173,7 @@ private:
|
|||
Mutex _multicastGroups_m;
|
||||
|
||||
std::vector<InetAddress> _ips;
|
||||
Mutex _ips_m;
|
||||
Mutex _ips_m, _tcpconns_m;
|
||||
|
||||
unsigned int _mtu;
|
||||
volatile bool _enabled;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue