Pol  Revision:3cfda13
msghandl.cpp File Reference
#include "msghandl.h"
#include "../../clib/clib_endian.h"
#include "../../clib/logfacility.h"
#include "../../clib/passert.h"
#include "../../clib/rawtypes.h"
#include "../globals/network.h"
#include "../pktboth.h"
#include "../pktbothid.h"
#include "../pktin.h"
#include "../pktinid.h"
#include "../pktout.h"
#include "../pktoutid.h"
#include "client.h"

Go to the source code of this file.

Namespaces

 Pol
 
 Pol::Network
 

Macros

#define MESSAGE_HANDLER(type, func)
 
#define MESSAGE_HANDLER_V2(type, func)
 
#define MESSAGE_HANDLER_VARLEN(type, func)
 
#define MESSAGE_HANDLER_VARLEN_V2(type, func)
 

Macro Definition Documentation

#define MESSAGE_HANDLER (   type,
  func 
)
Value:
PacketRegistry::set_handler( type##_ID, sizeof( type ), \
reinterpret_cast<Network::PktHandlerFunc>( func ), \
Network::PacketVersion::V1 )

Definition at line 107 of file msghandl.cpp.

Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().

#define MESSAGE_HANDLER_V2 (   type,
  func 
)
Value:
PacketRegistry::set_handler( type##_ID, sizeof( type ), \
reinterpret_cast<Network::PktHandlerFunc>( func ), \
Network::PacketVersion::V2 )

Definition at line 116 of file msghandl.cpp.

Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().

#define MESSAGE_HANDLER_VARLEN (   type,
  func 
)
Value:
PacketRegistry::set_handler( type##_ID, MSGLEN_2BYTELEN_DATA, (Network::PktHandlerFunc)func, \
Network::PacketVersion::V1 )
#define MSGLEN_2BYTELEN_DATA
Definition: msghandl.h:98
void(* PktHandlerFunc)(Client *client, void *msg)
Definition: msghandl.h:29

Definition at line 112 of file msghandl.cpp.

Referenced by Pol::Network::PacketRegistry::initialize_msg_handlers().

#define MESSAGE_HANDLER_VARLEN_V2 (   type,
  func 
)
Value:
PacketRegistry::set_handler( type##_ID, MSGLEN_2BYTELEN_DATA, (Network::PktHandlerFunc)func, \
Network::PacketVersion::V2 )
#define MSGLEN_2BYTELEN_DATA
Definition: msghandl.h:98
void(* PktHandlerFunc)(Client *client, void *msg)
Definition: msghandl.h:29

Definition at line 121 of file msghandl.cpp.