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

#include <NET_WebStream.h>

+ Inheritance diagram for NET_NetworkStream:

Public Member Functions

 NET_NetworkStream ()=delete
 
 NET_NetworkStream (UT_UniquePtr< UT_NetSocket > socket)
 
 NET_NetworkStream (const NET_NetworkStream &)=delete
 
NET_NetworkStreamoperator= (const NET_NetworkStream &)=delete
 
 NET_NetworkStream (NET_NetworkStream &&stream)
 
NET_NetworkStreamoperator= (NET_NetworkStream &&stream)
 
bool sendFile (UT_IFStream &fstream, exint count, exint &offset) override
 
int getFD () const override
 
int port () 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 &data) 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 ()
 
bool isValid () const
 

Additional Inherited Members

- Protected Attributes inherited from NET_WebStream
bool myIsValid
 

Detailed Description

Definition at line 102 of file NET_WebStream.h.

Constructor & Destructor Documentation

NET_NetworkStream::NET_NetworkStream ( )
delete
NET_NetworkStream::NET_NetworkStream ( UT_UniquePtr< UT_NetSocket socket)
explicit
NET_NetworkStream::NET_NetworkStream ( const NET_NetworkStream )
delete
NET_NetworkStream::NET_NetworkStream ( NET_NetworkStream &&  stream)
inline

Definition at line 110 of file NET_WebStream.h.

Member Function Documentation

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

Implements NET_WebStream.

int NET_NetworkStream::getFD ( ) const
overridevirtual

Implements NET_WebStream.

NET_NetworkStream& NET_NetworkStream::operator= ( const NET_NetworkStream )
delete
NET_NetworkStream& NET_NetworkStream::operator= ( NET_NetworkStream &&  stream)
inline

Definition at line 114 of file NET_WebStream.h.

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

Implements NET_WebStream.

int NET_NetworkStream::port ( ) const
inlineoverridevirtual

Reimplemented from NET_WebStream.

Definition at line 122 of file NET_WebStream.h.

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

Implements NET_WebStream.

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

Implements NET_WebStream.

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

Implements NET_WebStream.

bool NET_NetworkStream::write ( const UT_WorkBuffer data)
overridevirtual

Implements NET_WebStream.

bool NET_NetworkStream::write ( const UT_StringHolder data)
overridevirtual

Implements NET_WebStream.

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

Implements NET_WebStream.

int NET_NetworkStream::writePacket ( const UT_WorkBuffer data)
overridevirtual

Implements NET_WebStream.

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

Implements NET_WebStream.


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