HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_WebStream Class Referenceabstract

#include <NET_WebStream.h>

+ Inheritance diagram for NET_WebStream:

Public Member Functions

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

Protected Attributes

bool myIsValid
 

Detailed Description

Definition at line 31 of file NET_WebStream.h.

Constructor & Destructor Documentation

NET_WebStream::NET_WebStream ( )
default
virtual NET_WebStream::~NET_WebStream ( )
inlinevirtual

Definition at line 35 of file NET_WebStream.h.

Member Function Documentation

virtual int NET_WebStream::dataAvailable ( int  timeout = 0)
pure virtual
virtual int NET_WebStream::getFD ( ) const
pure virtual
virtual bool NET_WebStream::isLocalConnection ( ) const
pure virtual
bool NET_WebStream::isValid ( ) const
inline

Definition at line 62 of file NET_WebStream.h.

virtual int NET_WebStream::peek ( void data,
int  len,
int  timeout_ms = -1 
)
pure virtual
virtual int NET_WebStream::port ( ) const
inlinevirtual

Reimplemented in NET_SecureNetworkStream, and NET_NetworkStream.

Definition at line 42 of file NET_WebStream.h.

virtual int NET_WebStream::read ( UT_WorkBuffer wbuf,
unsigned  len,
int  timeout = -1 
)
pure virtual
virtual bool NET_WebStream::readPacket ( UT_WorkBuffer wbuf,
int  timeout = -1 
)
pure virtual
virtual bool NET_WebStream::sendFile ( UT_IFStream fstream,
exint  count,
exint offset 
)
pure virtual
virtual bool NET_WebStream::write ( const UT_WorkBuffer data)
pure virtual
virtual bool NET_WebStream::write ( const UT_StringHolder data)
pure virtual
virtual int NET_WebStream::write ( const UT_StringView data,
int nwritten 
)
pure virtual
virtual int NET_WebStream::writePacket ( const char *  data,
exint  length 
)
pure virtual
virtual int NET_WebStream::writePacket ( const UT_WorkBuffer wbuf)
pure virtual

Member Data Documentation

bool NET_WebStream::myIsValid
protected

Definition at line 68 of file NET_WebStream.h.


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