more couts
This commit is contained in:
@@ -222,8 +222,10 @@ void DispatcherServer::disconnectClient(DispatcherClient * client) {
|
||||
|
||||
|
||||
void DispatcherServer::newConnection(PIEthernet * cl) {
|
||||
piCout << "DispatcherServer::newConnection" << (void *)cl;
|
||||
PIMutexLocker locker(map_mutex);
|
||||
if (clients.size() >= max_connections) {
|
||||
piCout << "DispatcherServer::newConnection overflow" << (void *)cl;
|
||||
delete cl;
|
||||
return;
|
||||
}
|
||||
@@ -259,4 +261,5 @@ void DispatcherServer::newConnection(PIEthernet * cl) {
|
||||
// piCoutObj << "add client" << client;
|
||||
clients.push_back(client);
|
||||
client->start();
|
||||
piCout << "DispatcherServer::newConnection started" << (void *)cl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user