feat: Add packet capture functionality and many more CLI improvements (#182)

This commit is contained in:
Cain 2024-02-07 22:31:31 +00:00 committed by GitHub
commit e86e80522b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1445 additions and 82 deletions

View file

@ -16,7 +16,7 @@ pub const MAX_BUFFER_SIZE: usize = 500;
/// Send a ping packet.
///
/// [Reference](https://github.com/Anuken/Mindustry/blob/a2e5fbdedb2fc1c8d3c157bf344d10ad6d321442/core/src/mindustry/net/ArcNetProvider.java#L248)
pub fn send_ping(socket: &mut UdpSocket) -> GDResult<()> { socket.send(&[-2i8 as u8, 1i8 as u8]) }
pub(crate) fn send_ping(socket: &mut UdpSocket) -> GDResult<()> { socket.send(&[-2i8 as u8, 1i8 as u8]) }
/// Parse server data.
///