gopenfusion/core/protocol
CPunch 670d4a514c more better CNPeer.Send()
this fixes a race condition where if 2 goroutines try to send a packet at the same time, they could end up being
malformed due to the 2 separate calls to peer.conn.Write().

instead of writing the packet size to peer.conn.Write() directly, we make space in buf for the packet size,
and patch it in place. this lets us get away with only having 1 call to peer.conn.Write() which will ensure that
the full packet is written properly and be goroutine safe :3
2023-08-23 17:38:10 -05:00
..
pool major refactoring: db.Player is now core.Player 2023-03-22 00:30:58 -05:00
cnpeer.go more better CNPeer.Send() 2023-08-23 17:38:10 -05:00
encrypt.go major refactoring: db.Player is now core.Player 2023-03-22 00:30:58 -05:00
event.go god forgive me for this commit 2023-06-25 01:51:21 -05:00
packet.go major refactoring: db.Player is now core.Player 2023-03-22 00:30:58 -05:00
structs.go major refactoring: db.Player is now core.Player 2023-03-22 00:30:58 -05:00