Exemple #1
0
        public KCPProxy_LE(uint key, IPEndPoint remotePoint, Socket socket)
        {
            m_Socket      = socket;
            m_RemotePoint = remotePoint;

            m_Kcp = new KCP_LE(key, HandleKcpSend);
            //m_Kcp = new KCP_BE(key, HandleKcpSend);
            m_Kcp.NoDelay(1, 10, 2, 1);
            m_Kcp.WndSize(128, 128);
        }
Exemple #2
0
        public void Dispose()
        {
            m_Socket = null;

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

            m_Listener = null;
        }