From daef54ba32aa20bd9b05be4fbffe7eaf9b1e902f Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 10 Apr 2015 19:08:49 -0700 Subject: HTTP server is in, and works. --- osdep/Phy.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osdep') diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 775bc176..e245813b 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -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(sock)); long n = (long)::send(sws.sock,data,len,0); -- cgit v1.2.3