1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Implement minimal chat service, fix some implement bugs

This commit is contained in:
NGnius (Graham)
2025-02-23 20:17:46 -05:00
parent 2907376722
commit 2106613f62
21 changed files with 227 additions and 194 deletions

View File

@@ -4,7 +4,7 @@ use clap::Parser;
#[command(version, about, long_about = None)]
pub struct CliArgs {
/// TCP port on which to accept connections
#[arg(short, long, default_value_t = 4534)]
#[arg(short, long, default_value_t = 4536)]
pub port: u16,
/// IP Address on which to accept connections
@@ -16,7 +16,7 @@ pub struct CliArgs {
pub retries: usize,
/// Domain and port of the game server to send new connections
#[arg(long, default_value_t = {"127.0.0.1:4535".to_string()})]
#[arg(long, default_value_t = {"127.0.0.1:4537".to_string()})]
pub redirect: String,
/// Name of game server to send new connections

View File

@@ -146,7 +146,7 @@ async fn send_packet(packet: Packet, buf: &mut Vec<u8>, socket: &mut net::TcpStr
Ok(())
}
const APP_ID: &str = "SocialServer";
const APP_ID: &str = "ChatServer";
struct AuthImpl;