MULTIPLE-CONNECTION! First version that implement parallel active connections to DCs (through Client instances dependent of the main Client instance)

Also improved on:
- reconnection/retry/resent strategy
- start of multiple parallel downloads triggering a new DC connection
This commit is contained in:
Wizou 2021-09-28 16:12:20 +02:00
parent 66757ccd0b
commit da5098e8d5
3 changed files with 203 additions and 131 deletions

View file

@ -196,7 +196,7 @@ namespace WTelegram
private static void ValidityChecks(BigInteger p, int g)
{
Helpers.Log(2, "Verifying encryption key safety... (this should happen only once)");
Helpers.Log(2, "Verifying encryption key safety... (this should happen only once per DC)");
// check that 2^2047 <= p < 2^2048
if (p.GetBitLength() != 2048) throw new ApplicationException("p is not 2048-bit number");
// check that g generates a cyclic subgroup of prime order (p - 1) / 2, i.e. is a quadratic residue mod p.