initial player stuff
This commit is contained in:
parent
4b60ece582
commit
5100d91a72
38 changed files with 1107 additions and 93 deletions
|
@ -44,14 +44,14 @@ void W::Server::stop()
|
|||
}
|
||||
}
|
||||
|
||||
const W::Socket& W::Server::getConnection(uint64_t p_id) const
|
||||
const W::Socket* W::Server::getConnection(uint64_t p_id) const
|
||||
{
|
||||
std::map<uint64_t, Socket*>::const_iterator itr = connections.find(p_id);
|
||||
if (itr == connections.end()) {
|
||||
throw new SocketAccessError();
|
||||
}
|
||||
|
||||
return *(itr->second);
|
||||
return itr->second;
|
||||
}
|
||||
|
||||
uint64_t W::Server::getConnectionsCount() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue