HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
NET_IPacketConnectionHandler Class Referenceabstract

#include <NET_PacketConnectionHandler.h>

+ Inheritance diagram for NET_IPacketConnectionHandler:

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_PacketSocketsocket ()
 
- 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_NonCopyableoperator= (const UT_NonCopyable &)=delete
 

Additional Inherited Members

- Protected Attributes inherited from NET_ConnectionHandler
NET_ConnectionManagermyConnectionManager
 
UT_UniquePtr< NET_InfoCallbackmyInfoCallback
 

Detailed Description

Definition at line 27 of file NET_PacketConnectionHandler.h.

Constructor & Destructor Documentation

NET_IPacketConnectionHandler::NET_IPacketConnectionHandler ( NET_ConnectionManager mgr,
ASIO_TCPSocket  socket 
)
NET_IPacketConnectionHandler::~NET_IPacketConnectionHandler ( )
override

Member Function Documentation

virtual void NET_IPacketConnectionHandler::fail ( const hboost::system::error_code &  ec,
const char *  what 
)
protectedvirtual

Called whenever the received ec was an error.

virtual void NET_IPacketConnectionHandler::onPacket ( UT_WorkBuffer &&  data)
protectedpure virtual

Called each time the socket has read a full packet that is ready to be handled.

Implemented in NET_Performance::net_PacketConnectionHandler.

virtual void NET_IPacketConnectionHandler::requestStop ( bool  force)
protectedvirtual
NET_PacketSocket& NET_IPacketConnectionHandler::socket ( )
inlineprotected

Definition at line 49 of file NET_PacketConnectionHandler.h.

void NET_IPacketConnectionHandler::start ( )
overridevirtual

Implements NET_ConnectionHandler.

void NET_IPacketConnectionHandler::write ( const UT_StringHolder message)
protected

The documentation for this class was generated from the following file: