YAPOG  0.0.1
Yet Another Pokemon Online Game
NetworkHandler.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_NETWORKHANDLER_HPP
2 # define YAPOG_NETWORKHANDLER_HPP
3 
4 # include <memory>
5 
6 # include "YAPOG/Macros.hpp"
8 
9 namespace yap
10 {
11  class Packet;
12 
13  class ClientSocket;
14 
15  typedef std::shared_ptr<Packet> PacketPtrType;
16 
18  {
20 
21  public:
22 
23  NetworkHandler (ClientSocket& socket);
24 
25  void Refresh ();
26 
27  bool IsEmpty () const;
28  PacketPtrType GetPacket ();
29 
30  private:
31 
33 
35  };
36 } // namespace yap
37 
38 #endif // YAPOG_NETWORKHANDLER_HPP