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