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)
 
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)
 

Detailed Description

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

Definition at line 228 of file C4NetIO.h.

Member Function Documentation

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

Reimplemented from C4NetIO::CBClass.

Definition at line 233 of file C4NetIO.h.

234  { return pTarget->T::OnConn(AddrPeer, AddrConnect, pOwnAddr, pNetIO); }
template<class T >
virtual void C4NetIO::CBProxy< T >::OnDisconn ( const addr_t AddrPeer,
C4NetIO pNetIO,
const char *  szReason 
)
inlinevirtual

Reimplemented from C4NetIO::CBClass.

Definition at line 235 of file C4NetIO.h.

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

Implements C4NetIO::CBClass.

Definition at line 237 of file C4NetIO.h.

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

Definition at line 232 of file C4NetIO.h.

232 { pTarget = pnTarget; return this; }

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