Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
cIdentityTEParser Class Reference
Inheritance diagram for cIdentityTEParser:
Inheritance graph
[legend]
Collaboration diagram for cIdentityTEParser:
Collaboration graph
[legend]

Public Member Functions

 cIdentityTEParser (cCallbacks &a_Callbacks, size_t a_ContentLength)
 
- Public Member Functions inherited from cTransferEncodingParser
virtual ~cTransferEncodingParser ()
 

Protected Member Functions

virtual void Finish (void) override
 To be called when the stream is terminated from the source (connection closed). More...
 
virtual size_t Parse (const char *a_Data, size_t a_Size) override
 Parses the incoming data and calls the appropriate callbacks. More...
 
- Protected Member Functions inherited from cTransferEncodingParser
 cTransferEncodingParser (cCallbacks &a_Callbacks)
 

Protected Attributes

size_t m_BytesLeft
 How many bytes of content are left before the message ends. More...
 
- Protected Attributes inherited from cTransferEncodingParser
cCallbacksm_Callbacks
 The callbacks used to report progress. More...
 

Private Types

typedef cTransferEncodingParser Super
 

Additional Inherited Members

- Static Public Member Functions inherited from cTransferEncodingParser
static cTransferEncodingParserPtr Create (cCallbacks &a_Callbacks, const AString &a_TransferEncoding, size_t a_ContentLength)
 Creates a new parser for the specified encoding. More...
 

Detailed Description

Definition at line 318 of file TransferEncodingParser.cpp.

Member Typedef Documentation

Definition at line 321 of file TransferEncodingParser.cpp.

Constructor & Destructor Documentation

cIdentityTEParser::cIdentityTEParser ( cCallbacks a_Callbacks,
size_t  a_ContentLength 
)
inline

Definition at line 324 of file TransferEncodingParser.cpp.

Member Function Documentation

virtual void cIdentityTEParser::Finish ( void  )
inlineoverrideprotectedvirtual

To be called when the stream is terminated from the source (connection closed).

Flushes any buffers and calls appropriate callbacks.

Implements cTransferEncodingParser.

Definition at line 351 of file TransferEncodingParser.cpp.

virtual size_t cIdentityTEParser::Parse ( const char *  a_Data,
size_t  a_Size 
)
inlineoverrideprotectedvirtual

Parses the incoming data and calls the appropriate callbacks.

Returns the number of bytes from the end of a_Data that is already not part of this message (if the parser can detect it). Returns AString::npos on an error.

Implements cTransferEncodingParser.

Definition at line 336 of file TransferEncodingParser.cpp.

Member Data Documentation

size_t cIdentityTEParser::m_BytesLeft
protected

How many bytes of content are left before the message ends.

Definition at line 333 of file TransferEncodingParser.cpp.


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