OpenClonk
C4NetIO::CBProxy< T > Class Template Reference

#include <C4NetIO.h>

Inheritance diagram for C4NetIO::CBProxy< T >:
[legend]
Collaboration diagram for C4NetIO::CBProxy< T >:
[legend]

Public Member Functions

CBProxyoperator() (T *pnTarget)
 
bool OnConn (const addr_t &AddrPeer, const addr_t &AddrConnect, const addr_t *pOwnAddr, C4NetIO *pNetIO) override
 
void OnDisconn (const addr_t &AddrPeer, C4NetIO *pNetIO, const char *szReason) override
 
void OnPacket (const class C4NetIOPacket &rPacket, C4NetIO *pNetIO) override
 

Detailed Description

template<class T>
class C4NetIO::CBProxy< T >

Definition at line 229 of file C4NetIO.h.

Member Function Documentation

◆ OnConn()

template<class T >
bool C4NetIO::CBProxy< T >::OnConn ( const addr_t AddrPeer,
const addr_t AddrConnect,
const addr_t pOwnAddr,
C4NetIO pNetIO 
)
inlineoverridevirtual

Reimplemented from C4NetIO::CBClass.

Definition at line 234 of file C4NetIO.h.

235  { return pTarget->T::OnConn(AddrPeer, AddrConnect, pOwnAddr, pNetIO); }

◆ OnDisconn()

template<class T >
void C4NetIO::CBProxy< T >::OnDisconn ( const addr_t AddrPeer,
C4NetIO pNetIO,
const char *  szReason 
)
inlineoverridevirtual

Reimplemented from C4NetIO::CBClass.

Definition at line 236 of file C4NetIO.h.

237  { pTarget->T::OnDisconn(AddrPeer, pNetIO, szReason); }

◆ OnPacket()

template<class T >
void C4NetIO::CBProxy< T >::OnPacket ( const class C4NetIOPacket rPacket,
C4NetIO pNetIO 
)
inlineoverridevirtual

Implements C4NetIO::CBClass.

Definition at line 238 of file C4NetIO.h.

239  { pTarget->T::OnPacket(rPacket, pNetIO); }

◆ operator()()

template<class T >
CBProxy* C4NetIO::CBProxy< T >::operator() ( T *  pnTarget)
inline

Definition at line 233 of file C4NetIO.h.

233 { pTarget = pnTarget; return this; }

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