Files
robinsr/gameserver/src/lib.rs

12 lines
217 B
Rust
Raw Normal View History

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
}