#include <stdin.h>
Public Member Functions | |
virtual | ~input_stdin () |
input_stdin () | |
nstring | name () |
long | length () |
void | keepalive () |
long | read_inner (void *data, size_t nbytes) |
long | ftell_inner () |
Private Member Functions | |
input_stdin (const input_stdin &arg) | |
input_stdin & | operator= (const input_stdin &arg) |
Private Attributes | |
long | pos |
bool | unbuffered |
Definition at line 29 of file stdin.h.
virtual input_stdin::~input_stdin | ( | ) | [virtual] |
The destructor.
input_stdin::input_stdin | ( | ) |
The default constructor.
input_stdin::input_stdin | ( | const input_stdin & | arg | ) | [private] |
The copy constructor. Do not use.
nstring input_stdin::name | ( | ) | [virtual] |
long input_stdin::length | ( | ) | [virtual] |
void input_stdin::keepalive | ( | ) | [virtual] |
The keepalive method is used to set the SO_KEEPALIVE socket option, if the file is a socket. Does nothing otherwise.
Reimplemented from input_ty.
long input_stdin::read_inner | ( | void * | data, | |
size_t | nbytes | |||
) | [virtual] |
The read_inner method is used to read unbuffered data from the given input stream. At most nbytes bytes will be read into data. The number of bytes actually read will be returned. At end-of-file, a value <= 0 will be returned, and data will be unchanged. All file read errors or format errors are fatal, and will cause the method to not return.
data | Where to put the results of the read. | |
nbytes | The maximum number of bytes to read. |
Implements input_ty.
long input_stdin::ftell_inner | ( | ) | [virtual] |
input_stdin& input_stdin::operator= | ( | const input_stdin & | arg | ) | [private] |
The default constructor. Do not use.
long input_stdin::pos [private] |
bool input_stdin::unbuffered [private] |