12 lines
217 B
Rust
12 lines
217 B
Rust
use anyhow::Result;
|
|
|
|
mod net;
|
|
mod util;
|
|
|
|
use net::gateway::Gateway;
|
|
|
|
pub async fn start_gameserver() -> Result<()> {
|
|
let mut gateway = Gateway::new("0.0.0.0", 23301).await?;
|
|
Box::pin(gateway.listen()).await
|
|
}
|