YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
7
# include "
YAPOG/Collection/Queue.hpp
"
8
9
namespace
yap
10
{
11
class
Packet;
12
13
class
ClientSocket
;
14
15
typedef
std::shared_ptr<Packet>
PacketPtrType
;
16
17
class
YAPOG_LIB
NetworkHandler
18
{
19
DISALLOW_COPY
(
NetworkHandler
);
20
21
public
:
22
23
NetworkHandler
(
ClientSocket
& socket);
24
25
void
Refresh ();
26
27
bool
IsEmpty ()
const
;
28
PacketPtrType
GetPacket ();
29
30
private
:
31
32
ClientSocket
&
socket_
;
33
34
collection::Queue<PacketPtrType>
packets_
;
35
};
36
}
// namespace yap
37
38
#endif // YAPOG_NETWORKHANDLER_HPP
YAPOG
include
YAPOG
System
Network
NetworkHandler.hpp
Generated on Mon Sep 17 2012 22:24:24 for YAPOG by
1.8.1.1