YAPOG  0.0.1
Yet Another Pokemon Online Game
ServerSocket.cpp
Go to the documentation of this file.
3 
4 namespace yap
5 {
7  : Socket ()
8  , listener_ ()
9  {
10  }
11 
13  {
14  }
15 
17  {
18  return listener_.listen (port) == sf::Socket::Done;
19  }
20 
22  {
23  return listener_.accept (client.GetInnerSocket ()) == sf::Socket::Done;
24  }
25 
27  {
28  listener_.close ();
29  }
30 } // namespace yap