#include <iso_com_tcp_receiver_protocol.h>
Collaboration diagram for iso::com::TCPClientConnection2:
Public Member Functions | |
TCPClientConnection2 (int pClientSocket, const struct sockaddr_in &pClientAddress, unsigned int pMaxPacketSize) | |
~TCPClientConnection2 () | |
bool | bufferAvailable () const |
void | removeAvailableBuffer () |
const ByteBuffer & | buffer () const throw (ComException) |
void | receive (const MessageParser &pParser) throw (ComException) |
Protected Attributes | |
TCPReceiverProtocol * | mReceiverProtocol |
const MessageParser * | mParser |
int | mSocket |
sockaddr_in | mAddress |
client socket | |
bool | mConnected |
client address | |
char * | mReceiveBuffer |
PendingByteBuffer * | mPendingBuffer |
ByteBuffer * | mAvailableBuffer |
pending buffer | |
unsigned int | mMaxPacketSize |
available buffer | |
QMutex | mLock |
TCPClientConnection2::TCPClientConnection2 | ( | int | pClientSocket, | |
const struct sockaddr_in & | pClientAddress, | |||
unsigned int | pMaxPacketSize | |||
) |
TCPClientConnection2::~TCPClientConnection2 | ( | ) |
bool TCPClientConnection2::bufferAvailable | ( | ) | const |
void TCPClientConnection2::removeAvailableBuffer | ( | ) |
const ByteBuffer & TCPClientConnection2::buffer | ( | ) | const throw (ComException) |
void TCPClientConnection2::receive | ( | const MessageParser & | pParser | ) | throw (ComException) |
const MessageParser* iso::com::TCPClientConnection2::mParser [protected] |
int iso::com::TCPClientConnection2::mSocket [protected] |
struct sockaddr_in iso::com::TCPClientConnection2::mAddress [protected] |
client socket
bool iso::com::TCPClientConnection2::mConnected [protected] |
client address
char* iso::com::TCPClientConnection2::mReceiveBuffer [protected] |
pending buffer
unsigned int iso::com::TCPClientConnection2::mMaxPacketSize [protected] |
available buffer
QMutex iso::com::TCPClientConnection2::mLock [protected] |