protected override void ParseBody(ByteBuffer buf)
        {
#if DEBUG
            Client.LogManager.Log(ToString() + " " + Utils.Util.ToHex(buf.ToByteArray()));
#endif
            buf.Get();                                                      //00
            Onlines = buf.GetInt();
            IP      = Utils.Util.GetIpStringFromBytes(buf.GetByteArray(4)); //client ip
            Port    = (int)buf.GetChar();
            buf.GetChar();                                                  //unknown 00 3c
            ServerTime = Utils.Util.GetDateTimeFromMillis(buf.GetInt() * 1000L);
            Client.LogManager.Log(ToString() + " Onlines:" + Onlines.ToString() + " IP:" + IP + " ServerTime:" + ServerTime.ToString());
        }
Beispiel #2
0
 public void Start(Game.App app)
 {
     Onlines = new Onlines(_tonline);
 }