OpenClonk
C4NetIO::CBClass Class Referenceabstract

#include <C4NetIO.h>

Inheritance diagram for C4NetIO::CBClass:
[legend]

Public Member Functions

virtual bool OnConn (const addr_t &AddrPeer, const addr_t &AddrConnect, const addr_t *pOwnAddr, C4NetIO *pNetIO)
 
virtual void OnDisconn (const addr_t &AddrPeer, C4NetIO *pNetIO, const char *szReason)
 
virtual void OnPacket (const class C4NetIOPacket &rPacket, C4NetIO *pNetIO)=0
 
virtual ~CBClass ()=default
 

Detailed Description

Definition at line 218 of file C4NetIO.h.

Constructor & Destructor Documentation

◆ ~CBClass()

virtual C4NetIO::CBClass::~CBClass ( )
virtualdefault

Member Function Documentation

◆ OnConn()

virtual bool C4NetIO::CBClass::OnConn ( const addr_t AddrPeer,
const addr_t AddrConnect,
const addr_t pOwnAddr,
C4NetIO pNetIO 
)
inlinevirtual

Reimplemented in C4Network2IO, and C4NetIO::CBProxy< T >.

Definition at line 221 of file C4NetIO.h.

221 { return true; }

Referenced by C4NetIOTCP::Accept(), and C4NetIOUDP::Peer::OnConn().

Here is the caller graph for this function:

◆ OnDisconn()

virtual void C4NetIO::CBClass::OnDisconn ( const addr_t AddrPeer,
C4NetIO pNetIO,
const char *  szReason 
)
inlinevirtual

Reimplemented in C4Network2IO, MyCBClass, and C4NetIO::CBProxy< T >.

Definition at line 222 of file C4NetIO.h.

222 { }

Referenced by C4NetIOTCP::Close(), C4NetIOSimpleUDP::Execute(), C4NetIOTCP::Execute(), and C4NetIOUDP::Peer::OnClose().

Here is the caller graph for this function:

◆ OnPacket()

virtual void C4NetIO::CBClass::OnPacket ( const class C4NetIOPacket rPacket,
C4NetIO pNetIO 
)
pure virtual

Implemented in C4Network2IODiscoverClient, C4Network2IODiscover, C4NetIO::CBProxy< T >, and MyCBClass.

Referenced by C4NetIOSimpleUDP::Execute(), and C4NetIOTCP::UnpackPacket().

Here is the caller graph for this function:

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