chunkedge_protocol/packets/configuration/keep_alive_c2s.rs
1use chunkedge_binary::{Decode, Encode};
2
3use crate::{Packet, PacketState};
4
5#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
6#[packet(state = PacketState::Configuration)]
7/// Sent by the client to the server as a response to the
8/// [`KeepAliveS2c`](crate::packets::configuration::KeepAliveS2c) packet.
9/// The id is the same as the one sent by the server. if a client does not
10/// respond to a `KeepAliveS2c` packet within 15 seconds, the server should
11/// disconnect the client.
12pub struct KeepAliveC2s(pub i64);