YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
ServerSocket.cpp
Go to the documentation of this file.
1
#include "
YAPOG/System/Network/ServerSocket.hpp
"
2
#include "
YAPOG/System/Network/ClientSocket.hpp
"
3
4
namespace
yap
5
{
6
ServerSocket::ServerSocket
()
7
:
Socket
()
8
, listener_ ()
9
{
10
}
11
12
ServerSocket::~ServerSocket
()
13
{
14
}
15
16
bool
ServerSocket::Listen
(
Int16
port)
17
{
18
return
listener_
.listen (port) == sf::Socket::Done;
19
}
20
21
bool
ServerSocket::Accept
(
ClientSocket
& client)
22
{
23
return
listener_
.accept (client.
GetInnerSocket
()) == sf::Socket::Done;
24
}
25
26
void
ServerSocket::Close
()
27
{
28
listener_
.close ();
29
}
30
}
// namespace yap
YAPOG
src
YAPOG
System
Network
ServerSocket.cpp
Generated on Mon Sep 17 2012 22:24:26 for YAPOG by
1.8.1.1