Beispiel #1
0
        /// <summary>
        /// Read the server state from incomming packet.
        /// </summary>
        /// <param name="packet">Incomming packet.</param>
        public void UpdateState(byte[] packet)
        {
            if (packet.Length != 8)
            {
                return;
            }
            CServerStatus DonkeyServidorEstado = new CServerStatus(new MemoryStream(packet));

            m_Users = DonkeyServidorEstado.Users;
            m_Files = DonkeyServidorEstado.Files;
//			Debug.Write(m_Name+" Users:"+Convert.ToString(m_Users)+" Files:"+Convert.ToString(m_Files)+"\n");
        }
Beispiel #2
0
 /// <summary>
 /// Read the server state from incomming packet.
 /// </summary>
 /// <param name="packet">Incomming packet.</param>
 public void UpdateState(byte[] packet)
 {
     if (packet.Length!=8) return;
     CServerStatus DonkeyServidorEstado=new CServerStatus(new MemoryStream(packet));
     m_Users=DonkeyServidorEstado.Users;
     m_Files=DonkeyServidorEstado.Files;
     //			Debug.Write(m_Name+" Users:"+Convert.ToString(m_Users)+" Files:"+Convert.ToString(m_Files)+"\n");
 }