libt2n-git Archives

Subject: C++ inter-process communication library branch, master, updated. v0.6-21-gce44999

From: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libt2n-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 19 Jul 2013 09:36:58 +0200 (CEST)
The branch, master has been updated
       via  ce44999e70624278911ab8bcc67881268665c30f (commit)
      from  1eb8602854ffb05f61b033d68c653059ec016539 (commit)


- Log -----------------------------------------------------------------
commit ce44999e70624278911ab8bcc67881268665c30f
Author: Camilo Roca <camilo.roca@xxxxxxxxxxxxx>
Date:   Thu Jul 18 12:04:25 2013 +0200

    reset timeout if connection is active.

-----------------------------------------------------------------------

Summary of changes:
 src/socket_server.cpp |    7 +++++++
 src/socket_server.hxx |    3 +--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/socket_server.cpp b/src/socket_server.cpp
index 1d18fd2..d6ca439 100644
--- a/src/socket_server.cpp
+++ b/src/socket_server.cpp
@@ -324,4 +324,11 @@ void socket_server_connection::close()
     }
 }
 
+bool socket_server_connection::fill_buffer(long long usec_timeout,long long* 
usec_timeout_remaining)
+{
+    bool new_data = 
socket_handler::fill_buffer(buffer,usec_timeout,usec_timeout_remaining);
+    if (new_data)
+        reset_timeout();
+    return new_data;
+}
 }
diff --git a/src/socket_server.hxx b/src/socket_server.hxx
index 74d8e07..bbba379 100644
--- a/src/socket_server.hxx
+++ b/src/socket_server.hxx
@@ -95,8 +95,7 @@ class socket_server_connection : public socket_handler, 
public server_connection
             { socket_write(data); }
 
     public:
-        bool fill_buffer(long long usec_timeout=-1,long long* 
usec_timeout_remaining=NULL)
-            { return 
socket_handler::fill_buffer(buffer,usec_timeout,usec_timeout_remaining); }
+        bool fill_buffer(long long usec_timeout=-1,long long* 
usec_timeout_remaining=NULL);
 
         virtual void close();
 };


hooks/post-receive
-- 
C++ inter-process communication library

--
libt2n-git - see http://www.intra2net.com/en/developer/libt2n for details.
To unsubscribe send a mail to libt2n-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • C++ inter-process communication library branch, master, updated. v0.6-21-gce44999, libt2n-git <=