mirror of
https://github.com/ShaYmez/xlxd.git
synced 2025-09-07 15:47:52 -04:00
Redo changes of PR #29 previously overwritten with commit 83278d13
This commit is contained in:
parent
6633a59a22
commit
5ba8e770dc
@ -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();
|
||||||
if ( client->GetReflectorModule() != ' ' )
|
if ( client->GetReflectorModule() != ' ' )
|
||||||
{
|
{
|
||||||
std::cout << " on module " << client->GetReflectorModule();
|
std::cout << " on module " << client->GetReflectorModule();
|
||||||
@ -110,7 +110,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();
|
||||||
if ( client->GetReflectorModule() != ' ' )
|
if ( client->GetReflectorModule() != ' ' )
|
||||||
{
|
{
|
||||||
std::cout << " on module " << client->GetReflectorModule();
|
std::cout << " on module " << client->GetReflectorModule();
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
// identity
|
// identity
|
||||||
int GetProtocol(void) const { return PROTOCOL_DEXTRA; }
|
int GetProtocol(void) const { return PROTOCOL_DEXTRA; }
|
||||||
int GetProtocolRevision(void) const { return m_ProtRev; }
|
int GetProtocolRevision(void) const { return m_ProtRev; }
|
||||||
const char *GetProtocolName(void) const { return "Dextra"; }
|
const char *GetProtocolName(void) const { return "DExtra"; }
|
||||||
int GetCodec(void) const { return CODEC_AMBEPLUS; }
|
int GetCodec(void) const { return CODEC_AMBEPLUS; }
|
||||||
bool IsNode(void) const { return true; }
|
bool IsNode(void) const { return true; }
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
|
|
||||||
// identity
|
// identity
|
||||||
int GetProtocol(void) const { return PROTOCOL_DPLUS; }
|
int GetProtocol(void) const { return PROTOCOL_DPLUS; }
|
||||||
const char *GetProtocolName(void) const { return "Dplus"; }
|
const char *GetProtocolName(void) const { return "DPlus"; }
|
||||||
int GetCodec(void) const { return CODEC_AMBEPLUS; }
|
int GetCodec(void) const { return CODEC_AMBEPLUS; }
|
||||||
bool IsNode(void) const { return true; }
|
bool IsNode(void) const { return true; }
|
||||||
bool IsDextraDongle(void) const { return m_bDextraDongle; }
|
bool IsDextraDongle(void) const { return m_bDextraDongle; }
|
||||||
|
@ -85,7 +85,7 @@ void CPeers::AddPeer(CPeer *peer)
|
|||||||
// append peer to reflector peer list
|
// append peer to reflector peer list
|
||||||
m_Peers.push_back(peer);
|
m_Peers.push_back(peer);
|
||||||
std::cout << "New peer " << peer->GetCallsign() << " at " << peer->GetIp()
|
std::cout << "New peer " << peer->GetCallsign() << " at " << peer->GetIp()
|
||||||
<< " added with protocol " << peer->GetProtocol() << std::endl;
|
<< " added with protocol " << peer->GetProtocolName() << std::endl;
|
||||||
// and append all peer's client to reflector client list
|
// and append all peer's client to reflector client list
|
||||||
// it is double lock safe to lock Clients list after Peers list
|
// it is double lock safe to lock Clients list after Peers list
|
||||||
CClients *clients = g_Reflector.GetClients();
|
CClients *clients = g_Reflector.GetClients();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user