#include <IdentityContentLengthBodyWriter.h> [code]
Inherits Protocols::Http::BodyWriter.
Inheritance diagram for Protocols::Http::IdentityContentLengthBodyWriter:


Writes bytes to a Transport ensuring that a certain number of bytes has been written in total. After the last bytes is written, a BodyEnd() object may be passed in, but it is ignored and is not written which is not written to the Transport.
Protocol is supposed to create objects of this class if:
Definition at line 43 of file IdentityContentLengthBodyWriter.h.
Public Member Functions | |
| IdentityContentLengthBodyWriter (int contentLength) | |
| Constructs an IdentityContentLengthBodyWriter object. | |
| ~IdentityContentLengthBodyWriter () | |
| Destructor. | |
| bool | write (const Data &, Transport *) |
| Writes Data objects to bytes to transport if possible. | |
Private Attributes | |
| int | bytesLeft |
|
|
Constructs an IdentityContentLengthBodyWriter object.
Definition at line 29 of file IdentityContentLengthBodyWriter.cpp. |
|
|
Destructor.
Definition at line 36 of file IdentityContentLengthBodyWriter.cpp. |
|
||||||||||||
|
Writes Data objects to bytes to transport if possible.
Implements Protocols::Http::BodyWriter. Definition at line 54 of file IdentityContentLengthBodyWriter.cpp. |
|
|
Definition at line 53 of file IdentityContentLengthBodyWriter.h. |