Пример #1
0
        public MinecraftClient(Socket socket, DxEncryptPipe encryptPipe, CancellationToken disconnectToken, PacketSelector selector, KeyPair keyPair) : base(socket, encryptPipe, disconnectToken)
        {
            _selector    = selector;
            _encryptPipe = encryptPipe;

            VerifyToken = new byte[4];
            RandomUtils.Random.NextBytes(VerifyToken);

            KeyPair = keyPair;
        }
Пример #2
0
 public MinecraftServer()
 {
     _selector = new PacketSelector();
     _keyPair  = new KeyPair();
 }