|
|
|
@ -85,7 +85,7 @@ void CClients::AddClient(CClient *client)
|
|
|
|
// and append
|
|
|
|
// and append
|
|
|
|
m_Clients.push_back(client);
|
|
|
|
m_Clients.push_back(client);
|
|
|
|
std::cout << "New client " << client->GetCallsign() << " at " << client->GetIp()
|
|
|
|
std::cout << "New client " << client->GetCallsign() << " at " << client->GetIp()
|
|
|
|
<< " added with protocol " << client->GetProtocol()
|
|
|
|
<< " added with protocol " << client->GetProtocolName()
|
|
|
|
<< " on module " << client->GetReflectorModule() << std::endl;
|
|
|
|
<< " on module " << client->GetReflectorModule() << std::endl;
|
|
|
|
// notify
|
|
|
|
// notify
|
|
|
|
g_Reflector.OnClientsChanged();
|
|
|
|
g_Reflector.OnClientsChanged();
|
|
|
|
@ -106,7 +106,7 @@ void CClients::RemoveClient(CClient *client)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// remove it
|
|
|
|
// remove it
|
|
|
|
std::cout << "Client " << m_Clients[i]->GetCallsign() << " at " << m_Clients[i]->GetIp()
|
|
|
|
std::cout << "Client " << m_Clients[i]->GetCallsign() << " at " << m_Clients[i]->GetIp()
|
|
|
|
<< " removed with protocol " << client->GetProtocol()
|
|
|
|
<< " removed with protocol " << client->GetProtocolName()
|
|
|
|
<< " on module " << client->GetReflectorModule() << std::endl;
|
|
|
|
<< " on module " << client->GetReflectorModule() << std::endl;
|
|
|
|
delete m_Clients[i];
|
|
|
|
delete m_Clients[i];
|
|
|
|
m_Clients.erase(m_Clients.begin()+i);
|
|
|
|
m_Clients.erase(m_Clients.begin()+i);
|
|
|
|
|