diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-10-06 02:58:23 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-10-06 02:58:23 +0000 |
| commit | 411f240da34bab53cd18aa8b7ba09834ede49b1c (patch) | |
| tree | e7434082f385fda0d23e57edb7daad5725e4be04 | |
| parent | 31ead732224022892db26ac28e505c46f91bd0e0 (diff) | |
| download | libbu++-411f240da34bab53cd18aa8b7ba09834ede49b1c.tar.gz libbu++-411f240da34bab53cd18aa8b7ba09834ede49b1c.tar.bz2 libbu++-411f240da34bab53cd18aa8b7ba09834ede49b1c.tar.xz libbu++-411f240da34bab53cd18aa8b7ba09834ede49b1c.zip | |
Fixed the formatting of unsigned chars in the formatter, and added a function to
actually stop the fastcgi main loop.
Diffstat (limited to '')
| -rw-r--r-- | src/fastcgi.h | 2 | ||||
| -rw-r--r-- | src/formatter.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fastcgi.h b/src/fastcgi.h index 1a3d02e..d290c40 100644 --- a/src/fastcgi.h +++ b/src/fastcgi.h | |||
| @@ -102,6 +102,8 @@ namespace Bu | |||
| 102 | 102 | ||
| 103 | virtual void run(); | 103 | virtual void run(); |
| 104 | 104 | ||
| 105 | void stopRunning() { bRunning = false; } | ||
| 106 | |||
| 105 | virtual void onInit() { }; | 107 | virtual void onInit() { }; |
| 106 | virtual int onRequest( const StrHash &hParams, | 108 | virtual int onRequest( const StrHash &hParams, |
| 107 | const Bu::String &sStdIn, Bu::Stream &sStdOut, | 109 | const Bu::String &sStdIn, Bu::Stream &sStdOut, |
diff --git a/src/formatter.cpp b/src/formatter.cpp index 61a059a..f275d71 100644 --- a/src/formatter.cpp +++ b/src/formatter.cpp | |||
| @@ -364,7 +364,7 @@ Bu::Formatter &Bu::operator<<( Bu::Formatter &f, char c ) | |||
| 364 | 364 | ||
| 365 | Bu::Formatter &Bu::operator<<( Bu::Formatter &f, unsigned char c ) | 365 | Bu::Formatter &Bu::operator<<( Bu::Formatter &f, unsigned char c ) |
| 366 | { | 366 | { |
| 367 | f.ifmt<unsigned char>( c ); | 367 | f.ufmt<unsigned char>( c ); |
| 368 | //f.write( (char *)&c, 1 ); | 368 | //f.write( (char *)&c, 1 ); |
| 369 | return f; | 369 | return f; |
| 370 | } | 370 | } |
