Example #1
0
        void init_kcp(UInt32 conv)
        {
            m_Kcp = new KCPLib(conv, (byte[] buf, int size) => {
                m_UdpClient.Send(buf, size);
            });

            // fast mode.
            m_Kcp.NoDelay(1, 10, 2, 1);
            m_Kcp.WndSize(128, 128);
        }
Example #2
0
        void init_kcp(UInt32 conv)
        {
            m_Kcp = new KCPLib(conv, (byte[] buf, int size) => {
                m_KCPServer.Send(this, buf, 0, size);
            });

            // fast mode.
            m_Kcp.NoDelay(1, 10, 2, 1);
            m_Kcp.WndSize(128, 128);
        }