1
0
mirror of https://github.com/ShaYmez/xlxd.git synced 2024-12-23 01:55:49 -05:00

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); EncodeDisconnectedPacket(&Buffer);
m_Socket.Send(Buffer, Ip); m_Socket.Send(Buffer, Ip);
} }
// and remove it else if ( client->GetProtocolRevision() == 2 )
{
m_Socket.Send(Buffer, Ip);
}
// and remove it
clients->RemoveClient(client); clients->RemoveClient(client);
} }
g_Reflector.ReleaseClients(); g_Reflector.ReleaseClients();
@ -179,6 +183,7 @@ void CDextraProtocol::Task(void)
else else
{ {
std::cout << "DExtra packet (" << Buffer.size() << ")" << std::endl; 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; std::cout << "DPlus disconnect packet from " << Ip << std::endl;
// find client & remove it // find client
CClients *clients = g_Reflector.GetClients(); CClients *clients = g_Reflector.GetClients();
CClient *client = clients->FindClient(Ip, PROTOCOL_DPLUS); CClient *client = clients->FindClient(Ip, PROTOCOL_DPLUS);
if ( client != NULL ) if ( client != NULL )
{ {
// remove it
clients->RemoveClient(client); clients->RemoveClient(client);
// and acknowledge the disconnect
EncodeDisconnectPacket(&Buffer);
m_Socket.Send(Buffer, Ip);
} }
g_Reflector.ReleaseClients(); g_Reflector.ReleaseClients();
} }

View File

@ -157,7 +157,7 @@ bool CGateKeeper::MayTransmit(const CCallsign &callsign, const CIp &ip, int prot
// report // report
if ( !ok ) 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 // done

View File

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