From 1f04f620cf426735033e8da507cf2e4f629fa702 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 9 Nov 2006 01:06:55 +0000 Subject: Updated both the httpget class and the sbuffer, they're nice. --- src/httpget.cpp | 3 ++- src/sbuffer.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/httpget.cpp b/src/httpget.cpp index ebbdfe3..dc25aa1 100644 --- a/src/httpget.cpp +++ b/src/httpget.cpp @@ -159,7 +159,8 @@ SBuffer *HttpGet::get() con.open( sHost.c_str(), nPort ); con.appendOutput( sData.c_str(), sData.size() ); con.writeOutput(); - while( con.readInput() ); + while( con.readInput() ) + printf("Read %db\n", con.getInputAmnt() ); int total = con.getInputAmnt(); const char *dat = con.getInput(); diff --git a/src/sbuffer.h b/src/sbuffer.h index 1dda33a..5352bda 100644 --- a/src/sbuffer.h +++ b/src/sbuffer.h @@ -25,6 +25,11 @@ public: virtual void setPos( long pos ); virtual void setPosEnd( long pos ); + FlexBuf &getBuffer() + { + return fbData; + } + private: long nPos; bool bOpen; -- cgit v1.2.3