- add: new token login and join server packet

This commit is contained in:
2024-12-14 00:20:55 -05:00
parent 444e69294c
commit e6f78128a7
3 changed files with 415 additions and 413 deletions

View File

@@ -13,9 +13,9 @@ pub async fn route_packet(stream: &mut TcpStream, packet: Packet, auth_client: A
match packet.packet_type {
PacketType::PakcsAlive => Ok(()),
PacketType::PakcsAcceptReq => auth::handle_accept_req(stream, packet).await,
PacketType::PakcsJoinServerReq => auth::handle_join_server_req(stream, packet).await,
PacketType::PakcsJoinServerTokenReq => auth::handle_join_server_req(stream, packet).await,
// Login Stuff
PacketType::PakcsLoginReq => auth::handle_login_req(stream, packet, auth_client).await,
PacketType::PakcsLoginTokenReq => auth::handle_login_req(stream, packet, auth_client).await,
PacketType::PakcsSrvSelectReq => auth::handle_server_select_req(stream, packet).await,
PacketType::PakcsChannelListReq => auth::handle_channel_list_req(stream, packet).await,