public void StartKeepAlive() { Console.WriteLine(this + " StartKeepAlive"); System.Threading.Timer keepalive = new System.Threading.Timer((object e) => { CPacket _packet = CPacket.Create(0); _packet.WriteInt(0); SendCode(_packet); }, null, 0, 3000); }