duncan
Mom and Dad were wrong!
/home/malcolm/tmp/duncan/prototype/0/network/packetlistener.h
00001 #ifndef NET_PACKETLISTENER_H_
00002 #define NET_PACKETLISTENER_H_
00003 
00004 #include "network.h"
00005 
00006 namespace net {
00007 
00015 class PacketListener {
00016         public:
00017                 virtual ~PacketListener() {}
00018 
00027                 virtual void on_packet(data_t* buf, size_t size, index_t peer) {}
00028 
00033                 virtual void on_connect(index_t peer) {}
00034 
00039                 virtual void on_disconnect(index_t peer) {}
00040 };
00041 
00042 } // namespace
00043 
00044 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations