mod aclient;
mod aserver;
mod error;
pub mod kcp_server;
pub mod tools;

pub type NetResult<T> = Result<T, NetError>;

pub use aclient::AClient;
pub use aserver::{AServer, AServerSession};
pub use error::NetError;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd)]
#[repr(u32)]
pub enum ServiceType {
    Gateserver = 2,
    Gameserver = 3,
    Nodeserver = 4,
    Dbgate = 5,
    Dispatch = 7,
    Muipserver = 8,
    OfflineMsg = 9,
    Mail = 10,
    Mp = 11,
    HttpProxy = 12,
    Activity = 13,
    Pathfinding = 14,
    Social = 15,
    Oaserver = 16,
    Match = 17,
    OfflineOp = 18,
    Tothemoon = 19,
    GCG = 20,
}
