Commit Graph

10 Commits

Author SHA1 Message Date
Lily Tsuru a5bf226d11 *: begin actually unittesting!
I probably should've a long time ago, but here we are.

The aries library now has unit tests written for it, so we can actually (?) ensure it won't break randomly. It's now only 50% cowboy code!

Also provides a stub implementation of aries::DecodeBinaryTagData, which will be completed later.
2024-03-21 08:18:18 -04:00
Lily Tsuru f2c01cf924 aries: Implement async I/O algorithm for writing Aries messages
This may also save some memory, because we now no longer need to copy the contents of the memory multiple times.
2024-03-20 23:32:15 -04:00
Lily Tsuru a3a43269fe *: Move most Aries protocol stuff to new "aries" library
Not everything is moved yet, this needs a bit more work.
2024-03-20 23:09:58 -04:00
Lily Tsuru b1d7490409 a bunch of changes that actually make the game sort of try to talk to us 2024-03-16 06:42:32 -04:00
Lily Tsuru ee6446a624 oops 2024-03-10 06:52:14 -04:00
Lily Tsuru 315a3927f3 Use seperate spdlog loggers for components
Later on base/ might have a function to create loggers for it, but for now using the global logger for base/ components is fine.
2024-03-10 06:51:20 -04:00
Lily Tsuru 919490a8c0 *: port to spdlog
Later commits will work on creating loggers for each component.
2024-03-10 06:34:42 -04:00
Lily Tsuru 3a6f7e7d7d Fix message parsing
My bad lol
2024-03-10 06:17:43 -04:00
Lily Tsuru 37f21d8167 *: Giant rework
We now have DirtySockClient and DirtySockServer classes which do the actual protocol server work. The server also allow setting the message fourccs that can be accepted, which in theory we can implement derived classes which set that up.. For now we don't do that and run one dummy lobby server

The message factory now handles parsing, and messages now contain the header (mostly for niceity, but in theory we can now bound stuff or smth idk..)

I moved the IMessage code to the root, and I may even move the MessageFactory class to another file if I can.
2024-03-10 05:55:40 -04:00
Lily Tsuru 4851371f56 Initial commit of rewrite based on base/ library
Should make the code actually possible to finish :v
2024-02-05 06:24:57 -05:00