Exemple #1
0
        /// <summary>
        /// Read the server description from incomming packet.
        /// </summary>
        /// <param name="packet">Incomming packet.</param>
        public void ProcessDescription(byte[] packet)
        {
            if (packet.Length < 38)
            {
                return;
            }
            CServerDescription DonkeyServidorDescripcion = new CServerDescription(new MemoryStream(packet));

            m_Name        = DonkeyServidorDescripcion.Name;
            m_Description = DonkeyServidorDescripcion.Description;
        }
Exemple #2
0
 /// <summary>
 /// Read the server description from incomming packet.
 /// </summary>
 /// <param name="packet">Incomming packet.</param>
 public void ProcessDescription(byte[] packet)
 {
     if (packet.Length<38) return;
     CServerDescription DonkeyServidorDescripcion=new CServerDescription(new MemoryStream(packet));
     m_Name=DonkeyServidorDescripcion.Name;
     m_Description=DonkeyServidorDescripcion.Description;
 }