//
// Provides support for FastCGI via C++ iostreams.
//
-// $Id: fcgio.h,v 1.9 2001/11/21 21:12:04 robs Exp $
+// $Id: fcgio.h,v 1.10 2001/11/26 18:09:02 robs Exp $
//
// This work is based on routines written by George Feinberg. They
// have been mostly re-written and extensively changed by
// Note: sync() is protected in some implementations.
DLLAPI virtual int sync();
- // Fill the get area (if buffered) and return the next character.
+ // Remove and return the current character.
+ DLLAPI virtual int uflow();
+
+ // Fill the get area (if buffered) and return the current character.
DLLAPI virtual int underflow();
// Use a buffer. The only reasons that a buffer would be useful is
//
-// $Id: fcgio.cpp,v 1.10 2001/11/21 20:54:24 robs Exp $
+// $Id: fcgio.cpp,v 1.11 2001/11/26 18:09:03 robs Exp $
//
// Allows you communicate with FastCGI streams using C++ iostreams
//
return 0;
}
+// uflow() removes the char, underflow() doesn't
+int fcgi_streambuf::uflow()
+{
+ int rv = underflow();
+ if (this->bufsize) gbump(1);
+ return rv;
+}
+
+// Note that the expected behaviour when there is no buffer varies
int fcgi_streambuf::underflow()
{
if (this->bufsize)