Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Remove redundant comptime | Robby Zambito | 2025-04-03 |
| | | | | Move edge together at the end of the switch | ||
* | Properly initialize the SaprusMessage fromBytes | Robby Zambito | 2025-04-03 |
| | | | | Will actually use the provided packet type inline. | ||
* | dedup some | Robby Zambito | 2025-04-03 |
| | | | | Still need to clean up fromBytesAux | ||
* | Break out encoding and decoding into its own functions | Robby Zambito | 2025-04-03 |
| | |||
* | Add decoding connection messages | Robby Zambito | 2025-04-03 |
| | |||
* | Add packet decoding | Robby Zambito | 2025-04-03 |
| | | | | Big bug where I was setting the payload length do be the pre-encoded size rather than the encoded size. | ||
* | Small cleanup | Robby Zambito | 2025-04-03 |
| | | | | Rename allocator to gpa (general purpose allocator) and move DebugAllocator type out of main | ||
* | Remove unnecessary explicit cast | Robby Zambito | 2025-04-03 |
| | | | | Remove unnecessary Self declaration. | ||
* | Specify endianness when writing the header struct | Robby Zambito | 2025-04-03 |
| | |||
* | Explicitly specify the size of connection options | Robby Zambito | 2025-04-03 |
| | | | | This makes it so specifying the wrong number of options would actually throw a compile time error. | ||
* | Clean up string handling | Robby Zambito | 2025-04-03 |
| | |||
* | Make header always a packed struct | Robby Zambito | 2025-04-03 |
| | | | | This lets us easily use the same writeStructe(header) pattern to write the header for each message type. | ||
* | Base64 encode relay message | Robby Zambito | 2025-04-02 |
| | | | | write the packed connection struct directly instead of each of the fields. | ||
* | Add connection message type | Robby Zambito | 2025-04-02 |
| | |||
* | Remove tests | Robby Zambito | 2025-04-02 |
| | |||
* | Working with nice union | Robby Zambito | 2025-04-02 |
| | | | | This let's us easily use a single type for all Saprus messages, and unwrap the specific type with a switch. | ||
* | it works! | Robby Zambito | 2025-04-02 |
| | |||
* | Getting some data but malformed | Robby Zambito | 2025-04-02 |
| | | | | | | | This is what the data shows up in the sentinal looking like: 2025/04/02 22:36:32 Error decoding message: Hello darkness my old friend::48656c6c6f206461726b6e657373206d79206f6c6420667269656e64aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 2025/04/02 22:36:32 INFO: Relay message received: Hello darkness my old friend | ||
* | Add msgs with toBytes functions | Robby Zambito | 2025-04-02 |
| | |||
* | Added network dep | Robby Zambito | 2025-04-02 |
| | |||
* | Remove lib | Robby Zambito | 2025-04-02 |
| | |||
* | Initial commit | Robby Zambito | 2025-04-02 |