OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 227 of file C4NetIO.h.

Member Function Documentation

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 232 of file C4NetIO.h.

233  { return pTarget->T::OnConn(AddrPeer, AddrConnect, pOwnAddr, pNetIO); }
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 234 of file C4NetIO.h.

235  { pTarget->T::OnDisconn(AddrPeer, pNetIO, szReason); }
template<class T >
void C4NetIO::CBProxy< T >::OnPacket ( const class C4NetIOPacket rPacket,
C4NetIO pNetIO 
)
inlineoverridevirtual

Implements C4NetIO::CBClass.

Definition at line 236 of file C4NetIO.h.

237  { pTarget->T::OnPacket(rPacket, pNetIO); }
template<class T >
CBProxy* C4NetIO::CBProxy< T >::operator() ( T *  pnTarget)
inline

Definition at line 231 of file C4NetIO.h.

231 { pTarget = pnTarget; return this; }

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