cli->srv ping and srv->cli pong code