Пример #1
0
        public KCPProxy_BE(uint key, IPEndPoint remotePoint, Socket socket)
        {
            m_Socket      = socket;
            m_RemotePoint = remotePoint;

            //m_Kcp = new KCP(key, HandleKcpSend);
            m_Kcp = new KCP_BE(key, HandleKcpSend);
            m_Kcp.NoDelay(1, 10, 2, 1);
            m_Kcp.WndSize(128, 128);
        }
Пример #2
0
        public void Dispose()
        {
            m_Socket = null;

            if (m_Kcp != null)
            {
                m_Kcp.Dispose();
                m_Kcp = null;
            }

            m_Listener = null;
        }