TcpSocket::OUTPUT Struct Reference
[Internal utility]
Output buffer struct.
More...
#include <TcpSocket.h>
List of all members.
|
Public Member Functions |
| | OUTPUT () |
| | OUTPUT (const char *buf, size_t len) |
| size_t | Space () |
| void | Add (const char *buf, size_t len) |
| size_t | Remove (size_t len) |
| const char * | Buf () |
| size_t | Len () |
Public Attributes |
| size_t | _b |
| size_t | _t |
| size_t | _q |
| char | _buf [TCP_OUTPUT_CAPACITY] |
Detailed Description
Output buffer struct.
Definition at line 107 of file TcpSocket.h.
Constructor & Destructor Documentation
| TcpSocket::OUTPUT::OUTPUT |
( |
|
) |
|
| TcpSocket::OUTPUT::OUTPUT |
( |
const char * |
buf, |
|
|
size_t |
len | |
|
) |
| | |
Member Function Documentation
| size_t TcpSocket::OUTPUT::Space |
( |
|
) |
|
| void TcpSocket::OUTPUT::Add |
( |
const char * |
buf, |
|
|
size_t |
len | |
|
) |
| | |
| size_t TcpSocket::OUTPUT::Remove |
( |
size_t |
len |
) |
|
Definition at line 1842 of file TcpSocket.cpp.
References _b, and _q.
01843 {
01844 _b += len;
01845 _q -= len;
01846 return _q;
01847 }
| const char * TcpSocket::OUTPUT::Buf |
( |
|
) |
|
| size_t TcpSocket::OUTPUT::Len |
( |
|
) |
|
Member Data Documentation
The documentation for this struct was generated from the following files: