mod_servlet
C++Servlets
 All Classes Files Functions Variables Typedefs Macros Pages
servlet::sink Struct Reference

Sink tag. More...

#include <io.h>

Detailed Description

Sink tag.

This tag is used for the regular sinks provided to servlet::basic_outstream. This is default tag and it is not required to define it. The object with this tag is expected to have the following (optional) category definition:

typedef sink category;

and the following methods:

std::streamsize write(const CharT* s, std::streamsize n);
void flush();

Method write will attempt to write n characters from provided buffer s and return the number of butes successefully written.

Method flush will flush the underlying stream or do nothing if the stream cannot be flushed.


The documentation for this struct was generated from the following file: