Commit Graph

3 Commits

Author SHA1 Message Date
modeco80
4211941560 cvmts/protocol: Make protocols stateless
Instead of creating an instance of a protocol per user and storing state there, we just have the protocol implementations take in all of the state they should need in processMessage(), and store them all globally (with some wrappers to make it easier to handle this). This makes things slightly cleaner (and probably also helps memory usage, since we now don't need to create protocol instances as soon as a user connects/swaps, and they don't need to be garbage collected since they are held in the manager.)
2025-06-15 15:03:13 -04:00
modeco80
a8d32f0555 move ProtocolManager into its own unit 2024-08-23 10:15:35 -04:00
modeco80
74d7b17d8b re-org source tree slightly
network layer is net/
protocol is protocol/
2024-08-23 10:15:10 -04:00