26 #ifndef __NETWORK__EVE_TCP_CONNECTION_H__INCL__
27 #define __NETWORK__EVE_TCP_CONNECTION_H__INCL__
Simple wrapper for sockets.
static const uint32 PACKET_SIZE_LIMIT
Hardcoded limit of packet size (NetClient.dll).
packet_direction
Dumps buffer to file.
void ClearBuffers()
Clears send and receive buffers.
bool RecvData(char *errbuf=0)
Receives data and puts them into receive queue.
Common wrapper for platform-specific mutexes.
void QueueRep(const PyRep *rep, bool compress=true)
Queues given PyRep into send queue.
static const uint32 TIMEOUT_MS
Time (in milliseconds) after which the connection is dropped if no data were received.
PyRep * PopRep()
Pops PyRep from receive queue.
bool ProcessReceivedData(char *errbuf=0)
Processes received data.
Generic class for buffers.
void DumpBuffer(Buffer *buf, packet_direction packet_direction)
EVE derivation of TCP connection.
StreamPacketizer mInQueue
Received data queue.
virtual ~EVETCPConnection()
Generic class for TCP connections.
EVETCPConnection()
Creates empty EVE connection.
Timer mTimeoutTimer
Timer used to implement timeout.
Mutex mMInQueue
Mutex to protect received data queue.
EVE derivation of TCP server.