]> git.tdb.fi Git - libs/net.git/blob - source/receiver.h
Add function to check if handshake is done
[libs/net.git] / source / receiver.h
1 /* $Id$
2
3 This file is part of libmspnet
4 Copyright © 2009  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_NET_RECEIVER_H_
9 #define MSP_NET_RECEIVER_H_
10
11 namespace Msp {
12 namespace Net {
13
14 class ReceiverBase
15 {
16 protected:
17         ReceiverBase() { }
18 public:
19         virtual ~ReceiverBase() { }
20 };
21
22 template<typename P>
23 class PacketReceiver: public virtual ReceiverBase
24 {
25 protected:
26         PacketReceiver() { }
27 public:
28         virtual void receive(const P &) =0;
29 };
30
31 } // namespace Net
32 } // namespace Msp
33
34 #endif