mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 05:43:59 -07:00
HTTP server is in, and works.
This commit is contained in:
parent
5572b7ffb6
commit
daef54ba32
2 changed files with 223 additions and 24 deletions
|
@ -516,10 +516,10 @@ public:
|
|||
* @param sock An open TCP socket (other socket types will fail)
|
||||
* @param data Data to send
|
||||
* @param len Length of data
|
||||
* @param callCloseHandler If true, call close handler on socket closing failure condition
|
||||
* @param callCloseHandler If true, call close handler on socket closing failure condition (default: true)
|
||||
* @return Number of bytes actually sent or -1 on fatal error (socket closure)
|
||||
*/
|
||||
inline long tcpSend(PhySocket *sock,const void *data,unsigned long len,bool callCloseHandler)
|
||||
inline long tcpSend(PhySocket *sock,const void *data,unsigned long len,bool callCloseHandler = true)
|
||||
{
|
||||
PhySocketImpl &sws = *(reinterpret_cast<PhySocketImpl *>(sock));
|
||||
long n = (long)::send(sws.sock,data,len,0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue