diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-11-09 01:06:55 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-11-09 01:06:55 +0000 |
| commit | 1f04f620cf426735033e8da507cf2e4f629fa702 (patch) | |
| tree | f3a487ed2c00ab9ced925c19a3624480a4be81dc | |
| parent | 183c6e4862627899aad7f74b91eda8f5a052c74b (diff) | |
| download | libbu++-1f04f620cf426735033e8da507cf2e4f629fa702.tar.gz libbu++-1f04f620cf426735033e8da507cf2e4f629fa702.tar.bz2 libbu++-1f04f620cf426735033e8da507cf2e4f629fa702.tar.xz libbu++-1f04f620cf426735033e8da507cf2e4f629fa702.zip | |
Updated both the httpget class and the sbuffer, they're nice.
Diffstat (limited to '')
| -rw-r--r-- | src/httpget.cpp | 3 | ||||
| -rw-r--r-- | src/sbuffer.h | 5 |
2 files changed, 7 insertions, 1 deletions
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() | |||
| 159 | con.open( sHost.c_str(), nPort ); | 159 | con.open( sHost.c_str(), nPort ); |
| 160 | con.appendOutput( sData.c_str(), sData.size() ); | 160 | con.appendOutput( sData.c_str(), sData.size() ); |
| 161 | con.writeOutput(); | 161 | con.writeOutput(); |
| 162 | while( con.readInput() ); | 162 | while( con.readInput() ) |
| 163 | printf("Read %db\n", con.getInputAmnt() ); | ||
| 163 | 164 | ||
| 164 | int total = con.getInputAmnt(); | 165 | int total = con.getInputAmnt(); |
| 165 | const char *dat = con.getInput(); | 166 | 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: | |||
| 25 | virtual void setPos( long pos ); | 25 | virtual void setPos( long pos ); |
| 26 | virtual void setPosEnd( long pos ); | 26 | virtual void setPosEnd( long pos ); |
| 27 | 27 | ||
| 28 | FlexBuf &getBuffer() | ||
| 29 | { | ||
| 30 | return fbData; | ||
| 31 | } | ||
| 32 | |||
| 28 | private: | 33 | private: |
| 29 | long nPos; | 34 | long nPos; |
| 30 | bool bOpen; | 35 | bool bOpen; |
