HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_BufferStream Class Reference

#include <NET_WebStream.h>

+ Inheritance diagram for NET_BufferStream:

Public Member Functions

 NET_BufferStream ()=delete
 
 NET_BufferStream (UT_WorkBuffer &in_buffer, UT_WorkBuffer &out_buffer)
 
bool sendFile (UT_IFStream &fstream, exint count, exint &offset) override
 
int getFD () const override
 
int peek (void *data, int len, int timeout_ms=-1) override
 
int read (UT_WorkBuffer &wbuf, unsigned len, int timeout=-1) override
 
bool readPacket (UT_WorkBuffer &wbuf, int timeout=-1) override
 
bool write (const UT_WorkBuffer &data) override
 
bool write (const UT_StringHolder &data) override
 
int write (const UT_StringView &data, int &nwritten) override
 
int writePacket (const UT_WorkBuffer &wbuf) override
 
int writePacket (const char *data, exint length) override
 
int dataAvailable (int timeout=0) override
 
- Public Member Functions inherited from NET_WebStream
 NET_WebStream ()=default
 
virtual ~NET_WebStream ()
 
virtual int port () const
 
bool isValid () const
 

Additional Inherited Members

- Protected Attributes inherited from NET_WebStream
bool myIsValid
 

Detailed Description

Definition at line 70 of file NET_WebStream.h.

Constructor & Destructor Documentation

NET_BufferStream::NET_BufferStream ( )
delete
NET_BufferStream::NET_BufferStream ( UT_WorkBuffer in_buffer,
UT_WorkBuffer out_buffer 
)
explicit

Member Function Documentation

int NET_BufferStream::dataAvailable ( int  timeout = 0)
overridevirtual

Implements NET_WebStream.

int NET_BufferStream::getFD ( ) const
inlineoverridevirtual

Implements NET_WebStream.

Definition at line 78 of file NET_WebStream.h.

int NET_BufferStream::peek ( void data,
int  len,
int  timeout_ms = -1 
)
overridevirtual

Implements NET_WebStream.

int NET_BufferStream::read ( UT_WorkBuffer wbuf,
unsigned  len,
int  timeout = -1 
)
overridevirtual

Implements NET_WebStream.

bool NET_BufferStream::readPacket ( UT_WorkBuffer wbuf,
int  timeout = -1 
)
overridevirtual

Implements NET_WebStream.

bool NET_BufferStream::sendFile ( UT_IFStream fstream,
exint  count,
exint offset 
)
overridevirtual

Implements NET_WebStream.

bool NET_BufferStream::write ( const UT_WorkBuffer data)
overridevirtual

Implements NET_WebStream.

bool NET_BufferStream::write ( const UT_StringHolder data)
overridevirtual

Implements NET_WebStream.

int NET_BufferStream::write ( const UT_StringView data,
int nwritten 
)
overridevirtual

Implements NET_WebStream.

int NET_BufferStream::writePacket ( const UT_WorkBuffer wbuf)
overridevirtual

Implements NET_WebStream.

int NET_BufferStream::writePacket ( const char *  data,
exint  length 
)
overridevirtual

Implements NET_WebStream.


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