xlxd 1.3.7

This commit is contained in:
LX3JL 2016-04-28 10:59:20 +02:00
parent 2ed3b28de6
commit 97c4996deb
4 changed files with 13 additions and 4 deletions

View File

@ -157,7 +157,11 @@ void CDextraProtocol::Task(void)
EncodeDisconnectedPacket(&Buffer);
m_Socket.Send(Buffer, Ip);
}
// and remove it
else if ( client->GetProtocolRevision() == 2 )
{
m_Socket.Send(Buffer, Ip);
}
// and remove it
clients->RemoveClient(client);
}
g_Reflector.ReleaseClients();
@ -179,6 +183,7 @@ void CDextraProtocol::Task(void)
else
{
std::cout << "DExtra packet (" << Buffer.size() << ")" << std::endl;
//std::cout << Buffer.data() << std::endl;
}
}

View File

@ -142,12 +142,16 @@ void CDplusProtocol::Task(void)
{
std::cout << "DPlus disconnect packet from " << Ip << std::endl;
// find client & remove it
// find client
CClients *clients = g_Reflector.GetClients();
CClient *client = clients->FindClient(Ip, PROTOCOL_DPLUS);
if ( client != NULL )
{
// remove it
clients->RemoveClient(client);
// and acknowledge the disconnect
EncodeDisconnectPacket(&Buffer);
m_Socket.Send(Buffer, Ip);
}
g_Reflector.ReleaseClients();
}

View File

@ -157,7 +157,7 @@ bool CGateKeeper::MayTransmit(const CCallsign &callsign, const CIp &ip, int prot
// report
if ( !ok )
{
std::cout << "Gatekeeper blocking transmiting of " << callsign << " @ " << ip << " using protocol " << protocol << std::endl;
std::cout << "Gatekeeper blocking transmitting of " << callsign << " @ " << ip << " using protocol " << protocol << std::endl;
}
// done

View File

@ -48,7 +48,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 6
#define VERSION_REVISION 7
// global ------------------------------------------------------