mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-23 10:05:48 -05:00
xlxd 1.3.7
This commit is contained in:
parent
2ed3b28de6
commit
97c4996deb
@ -157,6 +157,10 @@ void CDextraProtocol::Task(void)
|
|||||||
EncodeDisconnectedPacket(&Buffer);
|
EncodeDisconnectedPacket(&Buffer);
|
||||||
m_Socket.Send(Buffer, Ip);
|
m_Socket.Send(Buffer, Ip);
|
||||||
}
|
}
|
||||||
|
else if ( client->GetProtocolRevision() == 2 )
|
||||||
|
{
|
||||||
|
m_Socket.Send(Buffer, Ip);
|
||||||
|
}
|
||||||
// and remove it
|
// and remove it
|
||||||
clients->RemoveClient(client);
|
clients->RemoveClient(client);
|
||||||
}
|
}
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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();
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
@ -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 ------------------------------------------------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user