1 #ifndef __TCPCONNECTION_H__ 2 #define __TCPCONNECTION_H__ 55 shared_ptr<tcp::socket> pSocket;
58 array<u8, RecvDataSize> RecvData;
61 void OnSend(
const boost::system::error_code &ErrorCode,
size_t Size, shared_ptr<asio::streambuf> SendBuffer);
64 void OnRecv(
const boost::system::error_code &ErrorCode,
size_t Size);
68 #endif // #ifndef __TCPCONNECTION_H__ unsigned char u8
Definition: TypeDefs.h:6
virtual void OnDisconnected()
Definition: TCPConnection.h:42
Definition: MemoryBuffer.h:7
tcp::socket * GetSocket()
Definition: TCPConnection.h:32
void AsyncSend(const u8 *pBuffer, int Size)
Definition: TCPConnection.cpp:45
virtual ~TCPConnection()=0
Definition: TCPConnection.cpp:12
virtual void OnRecvData(size_t Size)
Definition: TCPConnection.h:39
MemoryBuffer RecvBuffer
Definition: TCPConnection.h:26
void AsyncRecv()
Definition: TCPConnection.cpp:18
Definition: TCPConnection.h:9
TCPConnection(const shared_ptr< tcp::socket > &pInSocket)
Definition: TCPConnection.cpp:5
bool IsConnected() const
Definition: TCPConnection.h:21
bool bIsConnected
Definition: TCPConnection.h:29