Exemple #1
0
        protected void SetupKcp()
        {
            unreliable = new Unreliable(SendWithChecksum)
            {
                Reserved = RESERVED
            };

            kcp = new Kcp(0, SendWithChecksum)
            {
                Reserved = RESERVED
            };

            kcp.SetNoDelay(delayMode);
            open = true;

            Tick().Forget();
        }
Exemple #2
0
        protected void SetupKcp()
        {
            unreliable = new Unreliable(SendWithChecksum)
            {
                Reserved = RESERVED
            };

            kcp = new Kcp(0, SendWithChecksum)
            {
                Reserved = RESERVED
            };

            kcp.SetNoDelay(delayMode);
            kcp.SetWindowSize((uint)sendWindowSize, (uint)receiveWindowSize);
            open = true;

            Tick().Forget();
        }