#include <BufferedSocketInputStream.h>

Definition at line 24 of file BufferedSocketInputStream.h.
Public Member Functions | |
| BufferedSocketInputStream () | |
| BufferedSocketInputStream (RawSocketInputStream &input, const String &__lterm=NL) | |
| void | open (RawSocketInputStream &input, const String &__lterm=NL) |
| ~BufferedSocketInputStream () | |
| void | operator>> (String &s) |
| void | setBufferSize (UInt32 _size) |
| UInt32 | remaining () |
| Returns the amount of remaining bytes to be read. | |
| void | open (int __fd) |
| void | open (const String &fname) |
| virtual void | close () |
| void | setFlags (int _f) |
| virtual UInt32 | read (void *data, UInt32 size) |
| UInt32 | read (UInt32 n) |
| UInt32 | read (double n) |
| UInt32 | read (UInt64 n) |
| virtual UInt32 | read (Buffer &data, UInt32 size) |
| virtual ReadableStream & | read (Buffer &b) |
| Reads all data starting from the current position to the end of the file and returns it in a Buffer object. | |
| bool | eof () |
| virtual void | seek (FileOffsetT _pos) throw (StreamIsNotSeekable) |
| virtual void | seekEnd () throw (StreamIsNotSeekable) |
| virtual void | seekBegin () throw (StreamIsNotSeekable) |
| virtual void | seekStep (FileOffsetT _step) throw (StreamIsNotSeekable) |
| int | fd () |
| virtual bool | ready (int timeout=100) |
| virtual ReadableStream & | operator>> (UInt32 n) |
| virtual ReadableStream & | operator>> (double n) |
| virtual ReadableStream & | operator>> (UInt64 n) |
| virtual ReadableStream & | readAll (Buffer &b) |
| Loads the full contents and returns it in a Buffer. | |
| virtual void | flush () |
| virtual void | setTimeout (int millisecs) |
| virtual bool | opened ()=0 |
| virtual bool | opened () |
| virtual FileSizeT | size ()=0 |
| virtual FileSizeT | size () |
| virtual FileOffsetT | tell ()=0 |
| virtual FileOffsetT | tell () |
| virtual const char * | getClassName () |
| Returns the name of the current class. | |
| virtual std::string | toString () |
Static Public Member Functions | |
| static void | setDefaultBufferSize (UInt32 _size) |
| static void | debugmsg (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
| Will print a debug message to the screen. | |
| static void | debugmsgln (Object *obj, const char *msg, int linenumber=__LINE__, const char *srcfile=__FILE__) |
Protected Attributes | |
| UInt32 | _bufsize |
| String | buffer |
| String | _lterm |
| int | flags |
| bool | handles_timeouts |
| int | timeout_msecs |
| std::string | __cls_name |
| int | _fd |
| bool | _a_close |
| bool | _is_opened |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const Object &s) |
| xvr2::Net::BufferedSocketInputStream::BufferedSocketInputStream | ( | ) |
| xvr2::Net::BufferedSocketInputStream::BufferedSocketInputStream | ( | RawSocketInputStream & | input, | |
| const String & | __lterm = NL | |||
| ) |
| xvr2::Net::BufferedSocketInputStream::~BufferedSocketInputStream | ( | ) |
| void xvr2::Net::BufferedSocketInputStream::open | ( | RawSocketInputStream & | input, | |
| const String & | __lterm = NL | |||
| ) |
| void xvr2::Net::BufferedSocketInputStream::operator>> | ( | String & | s | ) |
| static void xvr2::Net::BufferedSocketInputStream::setDefaultBufferSize | ( | UInt32 | _size | ) | [static] |
| void xvr2::Net::BufferedSocketInputStream::setBufferSize | ( | UInt32 | _size | ) |
| UInt32 xvr2::Net::BufferedSocketInputStream::remaining | ( | ) |
Returns the amount of remaining bytes to be read.
| void xvr2::Net::RawSocketInputStream::open | ( | int | __fd | ) | [inherited] |
Reimplemented from xvr2::RawInputStream.
| void xvr2::Net::RawSocketInputStream::open | ( | const String & | fname | ) | [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| virtual void xvr2::Net::RawSocketInputStream::close | ( | ) | [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| void xvr2::Net::RawSocketInputStream::setFlags | ( | int | _f | ) | [inherited] |
| virtual UInt32 xvr2::Net::RawSocketInputStream::read | ( | void * | data, | |
| UInt32 | size | |||
| ) | [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| UInt32 xvr2::ReadableStream::read | ( | double | n | ) | [inherited] |
Reimplemented in xvr2::StdioInputFile.
| virtual ReadableStream& xvr2::ReadableStream::read | ( | Buffer & | b | ) | [virtual, inherited] |
Reads all data starting from the current position to the end of the file and returns it in a Buffer object.
Reimplemented in xvr2::StdioInputFile.
| bool xvr2::Net::RawSocketInputStream::eof | ( | ) | [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| virtual void xvr2::Net::RawSocketInputStream::seek | ( | FileOffsetT | _pos | ) | throw (StreamIsNotSeekable) [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| virtual void xvr2::Net::RawSocketInputStream::seekEnd | ( | ) | throw (StreamIsNotSeekable) [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| virtual void xvr2::Net::RawSocketInputStream::seekBegin | ( | ) | throw (StreamIsNotSeekable) [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| virtual void xvr2::Net::RawSocketInputStream::seekStep | ( | FileOffsetT | _step | ) | throw (StreamIsNotSeekable) [virtual, inherited] |
Reimplemented from xvr2::RawInputStream.
| int xvr2::RawInputStream::fd | ( | ) | [inherited] |
| virtual bool xvr2::RawInputStream::ready | ( | int | timeout = 100 |
) | [virtual, inherited] |
Implements xvr2::RawStreamInterface.
| virtual ReadableStream& xvr2::ReadableStream::operator>> | ( | UInt32 | n | ) | [virtual, inherited] |
| virtual ReadableStream& xvr2::ReadableStream::operator>> | ( | double | n | ) | [virtual, inherited] |
| virtual ReadableStream& xvr2::ReadableStream::operator>> | ( | UInt64 | n | ) | [virtual, inherited] |
| virtual ReadableStream& xvr2::ReadableStream::readAll | ( | Buffer & | b | ) | [virtual, inherited] |
| virtual void xvr2::ReadableStream::flush | ( | ) | [virtual, inherited] |
| virtual void xvr2::ReadableStream::setTimeout | ( | int | millisecs | ) | [inline, virtual, inherited] |
| virtual bool xvr2::StreamInterface::opened | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawStreamInterface, xvr2::StdioInputFile, and xvr2::StdioOutputFile.
| virtual bool xvr2::RawStreamInterface::opened | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
| virtual FileSizeT xvr2::StreamInterface::size | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawOutputStream, xvr2::RawStreamInterface, xvr2::StdioInterface, and xvr2::Net::RawSocketOutputStream.
| virtual FileSizeT xvr2::RawStreamInterface::size | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
Reimplemented in xvr2::RawOutputStream, and xvr2::Net::RawSocketOutputStream.
| virtual FileOffsetT xvr2::StreamInterface::tell | ( | ) | [pure virtual, inherited] |
Implemented in xvr2::RawStreamInterface, and xvr2::StdioInterface.
| virtual FileOffsetT xvr2::RawStreamInterface::tell | ( | ) | [virtual, inherited] |
Implements xvr2::StreamInterface.
| virtual const char* xvr2::Object::getClassName | ( | ) | [virtual, inherited] |
Returns the name of the current class.
| static void xvr2::Object::debugmsg | ( | Object * | obj, | |
| const char * | msg, | |||
| int | linenumber = __LINE__, |
|||
| const char * | srcfile = __FILE__ | |||
| ) | [static, inherited] |
Will print a debug message to the screen.
| static void xvr2::Object::debugmsgln | ( | Object * | obj, | |
| const char * | msg, | |||
| int | linenumber = __LINE__, |
|||
| const char * | srcfile = __FILE__ | |||
| ) | [static, inherited] |
| virtual std::string xvr2::Object::toString | ( | ) | [virtual, inherited] |
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const Object & | s | |||
| ) | [friend, inherited] |
UInt32 xvr2::Net::BufferedSocketInputStream::_bufsize [protected] |
Definition at line 26 of file BufferedSocketInputStream.h.
String xvr2::Net::BufferedSocketInputStream::buffer [protected] |
Definition at line 27 of file BufferedSocketInputStream.h.
String xvr2::Net::BufferedSocketInputStream::_lterm [protected] |
Definition at line 28 of file BufferedSocketInputStream.h.
int xvr2::Net::RawSocketInputStream::flags [protected, inherited] |
Definition at line 28 of file RawSocketInputStream.h.
bool xvr2::ReadableStream::handles_timeouts [protected, inherited] |
Definition at line 58 of file StreamInterface.h.
Referenced by xvr2::ReadableStream::ReadableStream().
int xvr2::ReadableStream::timeout_msecs [protected, inherited] |
Definition at line 59 of file StreamInterface.h.
Referenced by xvr2::ReadableStream::ReadableStream(), and xvr2::ReadableStream::setTimeout().
std::string xvr2::Object::__cls_name [protected, inherited] |
int xvr2::RawStreamInterface::_fd [protected, inherited] |
Definition at line 21 of file RawStreamInterface.h.
bool xvr2::RawStreamInterface::_a_close [protected, inherited] |
Definition at line 22 of file RawStreamInterface.h.
bool xvr2::RawStreamInterface::_is_opened [protected, inherited] |
Definition at line 23 of file RawStreamInterface.h.
1.5.5