#include <C4NetIO.h>
Definition at line 400 of file C4NetIO.h.
◆ Peer()
◆ ~Peer()
C4NetIOTCP::Peer::~Peer |
( |
| ) |
|
◆ ClearStatistics()
void C4NetIOTCP::Peer::ClearStatistics |
( |
| ) |
|
◆ Close()
void C4NetIOTCP::Peer::Close |
( |
| ) |
|
◆ doBroadcast()
bool C4NetIOTCP::Peer::doBroadcast |
( |
| ) |
const |
|
inline |
◆ GetAddr()
◆ GetIRate()
int C4NetIOTCP::Peer::GetIRate |
( |
| ) |
const |
|
inline |
◆ GetORate()
int C4NetIOTCP::Peer::GetORate |
( |
| ) |
const |
|
inline |
◆ GetRecvBuf()
void * C4NetIOTCP::Peer::GetRecvBuf |
( |
int |
iSize | ) |
|
Definition at line 1805 of file C4NetIO.cpp.
static const unsigned int iMinIBufSize
void SetSize(size_t inSize)
References iSize.
◆ GetSocket()
SOCKET C4NetIOTCP::Peer::GetSocket |
( |
| ) |
const |
|
inline |
◆ hasWaitingData()
bool C4NetIOTCP::Peer::hasWaitingData |
( |
| ) |
const |
|
inline |
◆ OnRecv()
void C4NetIOTCP::Peer::OnRecv |
( |
int |
iSize | ) |
|
Definition at line 1818 of file C4NetIO.cpp.
1827 size_t iPos = 0, iPacketPos;
1828 while ((iPacketPos = iPos) < (
size_t)
iIBufUsage)
1843 if (!iPacketPos)
return;
static const unsigned int iTCPHeaderSize
virtual size_t UnpackPacket(const StdBuf &rInBuf, const C4NetIO::addr_t &Addr)
void Shrink(size_t iShrink)
void Move(size_t iFrom, size_t inSize, size_t iTo=0)
StdBuf getPart(size_t iStart, size_t inSize) const
References StdBuf::getPart(), iSize, and StdBuf::Move().
◆ Open()
bool C4NetIOTCP::Peer::Open |
( |
| ) |
const |
|
inline |
◆ Send() [1/2]
bool C4NetIOTCP::Peer::Send |
( |
| ) |
|
◆ Send() [2/2]
◆ SetBroadcast()
void C4NetIOTCP::Peer::SetBroadcast |
( |
bool |
fSet | ) |
|
|
inline |
◆ addr
◆ fDoBroadcast
bool C4NetIOTCP::Peer::fDoBroadcast |
|
protected |
◆ fOpen
bool C4NetIOTCP::Peer::fOpen |
|
protected |
◆ IBuf
◆ ICSec
◆ iIBufUsage
int C4NetIOTCP::Peer::iIBufUsage |
|
protected |
◆ iIRate
int C4NetIOTCP::Peer::iIRate |
|
protected |
◆ iMinIBufSize
const unsigned int C4NetIOTCP::Peer::iMinIBufSize = 8192 |
|
staticprotected |
◆ iORate
int C4NetIOTCP::Peer::iORate |
|
protected |
◆ iTCPHeaderSize
const unsigned int C4NetIOTCP::Peer::iTCPHeaderSize = 28 + 24 |
|
staticprotected |
◆ Next
Peer* C4NetIOTCP::Peer::Next |
◆ OBuf
◆ OCSec
◆ pParent
◆ sock
The documentation for this class was generated from the following files: