1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Raknet messages.
pub mod client;
pub mod server;
use std::net::Ipv4Addr;
use endio::{Deserialize, Serialize};
/// A combination of Ipv4Addr and port. todo: just use SocketAddrV4
#[derive(Debug, Deserialize, PartialEq, Serialize)]
pub struct SystemAddress {
pub ip: Ipv4Addr,
pub port: u16,
}