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:
parent
2ed3b28de6
commit
97c4996deb
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -48,7 +48,7 @@
|
||||
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 3
|
||||
#define VERSION_REVISION 6
|
||||
#define VERSION_REVISION 7
|
||||
|
||||
// global ------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user