Connection and disconnection are working correctly
I've dummied out the player code, so only the client connection code is working. Otherwise the protocol hasn't changed. I've also made a few other tweaks as I went along, but nothing really major.
This commit is contained in:
@@ -38,6 +38,12 @@ int ClientManager::HandleDisconnection(int i) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
void ClientManager::ForEach(Lambda fn) {
|
||||
for(Iterator it = clientMap.begin(); it != clientMap.end(); it++) {
|
||||
fn(it);
|
||||
}
|
||||
}
|
||||
|
||||
ClientEntry* ClientManager::GetClient(int i) {
|
||||
for (auto& it : clientMap) {
|
||||
if (it.first == i) {
|
||||
|
||||
Reference in New Issue
Block a user