private void PingHostThread() { while (true) { socket.Ping(null, masterServerEndpoint); Thread.Sleep(sleepTime); } }