updated included zerotierone src
This commit is contained in:
@@ -252,7 +252,7 @@ public:
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
::send(_whackSendSocket,(const char *)this,1,0);
|
||||
#else
|
||||
(void)(::write(_whackSendSocket,(PhySocket *)this,1));
|
||||
::write(_whackSendSocket,(PhySocket *)this,1);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -545,6 +545,7 @@ public:
|
||||
#endif
|
||||
|
||||
if (::bind(s,localAddress,(localAddress->sa_family == AF_INET6) ? sizeof(struct sockaddr_in6) : sizeof(struct sockaddr_in))) {
|
||||
perror("bind");
|
||||
ZT_PHY_CLOSE_SOCKET(s);
|
||||
return (PhySocket *)0;
|
||||
}
|
||||
@@ -917,7 +918,7 @@ public:
|
||||
}
|
||||
if ((FD_ISSET(sock,&wfds))&&(FD_ISSET(sock,&_writefds))) {
|
||||
try {
|
||||
_handler->phyOnTcpWritable((PhySocket *)&(*s),&(s->uptr));
|
||||
_handler->phyOnTcpWritable((PhySocket *)&(*s),&(s->uptr),false);
|
||||
} catch ( ... ) {}
|
||||
}
|
||||
} break;
|
||||
|
||||
Reference in New Issue
Block a user