HDK
|
#include <NET_PacketConnectionHandler.h>
Public Member Functions | |
NET_IPacketConnectionHandler (NET_ConnectionManager &mgr, ASIO_TCPSocket socket) | |
~NET_IPacketConnectionHandler () override | |
void | start () override |
Public Member Functions inherited from NET_ConnectionHandler | |
virtual | ~NET_ConnectionHandler () |
UT_NON_COPYABLE (NET_ConnectionHandler) | |
void | setInfoCallback (UT_UniquePtr< NET_InfoCallback > info_clb) |
Protected Member Functions | |
virtual void | onPacket (UT_WorkBuffer &&data)=0 |
virtual void | fail (const hboost::system::error_code &ec, const char *what) |
Called whenever the received ec was an error. More... | |
void | write (const UT_StringHolder &message) |
virtual void | requestStop (bool force) |
NET_PacketSocket & | socket () |
Protected Member Functions inherited from NET_ConnectionHandler | |
NET_ConnectionHandler (NET_ConnectionManager &conn_mgr) | |
Protected Member Functions inherited from UT_NonCopyableNS::UT_NonCopyable | |
UT_NonCopyable ()=default | |
~UT_NonCopyable ()=default | |
UT_NonCopyable (const UT_NonCopyable &)=delete | |
UT_NonCopyable & | operator= (const UT_NonCopyable &)=delete |
Additional Inherited Members | |
Protected Attributes inherited from NET_ConnectionHandler | |
NET_ConnectionManager & | myConnectionManager |
UT_UniquePtr< NET_InfoCallback > | myInfoCallback |
Definition at line 27 of file NET_PacketConnectionHandler.h.
NET_IPacketConnectionHandler::NET_IPacketConnectionHandler | ( | NET_ConnectionManager & | mgr, |
ASIO_TCPSocket | socket | ||
) |
|
override |
|
protectedvirtual |
Called whenever the received ec was an error.
|
protectedpure virtual |
Called each time the socket has read a full packet that is ready to be handled.
Implemented in NET_Performance::net_PacketConnectionHandler.
|
protectedvirtual |
|
inlineprotected |
Definition at line 49 of file NET_PacketConnectionHandler.h.
|
overridevirtual |
Implements NET_ConnectionHandler.
|
protected |