From 251de734feb2be2d414255dff8358045116e28e1 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 31 Oct 2006 11:01:43 +0000 Subject: Expanded the scope of the stream system to include positional functions. Updated the Connection class so that it won't die horribly if you don't provide the pointers to updatable memory for the amount of time not spent waiting for data during a read. Also fiddled with the http test, as you can see...nothing important. --- src/connection.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index 748d56d..bf687ec 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -292,8 +292,11 @@ bool Connection::readInput( int nSec, int nUSec, int *pnSecBack, int *pnUSecBack st = ust = 0; } - *pnSecBack = st; - *pnUSecBack = ust; + if( pnSecBack ) + { + *pnSecBack = st; + *pnUSecBack = ust; + } //printf("New time: %d %d\n", *pnSecBack, *pnUSecBack ); -- cgit v1.2.3