Add social server and implement all op codes up until chat room connection blocks further requests

This commit is contained in:
NGnius (Graham) committed 2025-02-23 16:10:21 -05:00
1 parent d8885d811f
commit 2907376722
76 files changed
+3052 -7

No files matched your search

+3
View File
@@ -60,6 +60,9 @@ async fn process_socket(mut socket: net::TcpStream, address: std::net::SocketAdd
match packet {
Packet::Ping(ping) => {
handle_ping(ping, &mut write_buf, &mut socket).await;
for _ in 0..5 {
read_buf.remove(0);
}
},
Packet::Packet(packet) => {
// remove packet's advertised size from the buffer