| Commit message (Collapse) | Author | Age |
|
|
|
| |
Also clean up the args for the aux functions by computing the type instead of passing it
|
|
|
|
| |
writing
|
|
|
|
| |
this seems like the best way to do it.
|
|
|
|
|
| |
Use direct mem copying into the buf instead of writing to it with the writer interface.
Probably better to use the writer actually, since this suffers from the same issue with the extra two null bytes.
|
| |
|
| |
|
| |
|
|
|
|
| |
Make it so I can specify the payload message
|
| |
|
|
|
|
| |
This makes it so references to it are lazily compiled, so I can throw a compileError if it is referenced in the wrong mode.
|
| |
|
|
|
|
| |
also move the body of the base64 handling back to the only place it is used now
|
|
|
|
| |
Move edge together at the end of the switch
|
|
|
|
| |
Will actually use the provided packet type inline.
|
|
|
|
| |
Still need to clean up fromBytesAux
|
| |
|
| |
|
|
|
|
| |
Big bug where I was setting the payload length do be the pre-encoded size rather than the encoded size.
|
|
|
|
| |
Rename allocator to gpa (general purpose allocator) and move DebugAllocator type out of main
|
|
|
|
| |
Remove unnecessary Self declaration.
|
| |
|
|
|
|
| |
This makes it so specifying the wrong number of options would actually throw a compile time error.
|
| |
|
|
|
|
| |
This lets us easily use the same writeStructe(header) pattern to write the header for each message type.
|
|
|
|
| |
write the packed connection struct directly instead of each of the fields.
|
| |
|
| |
|
|
|
|
| |
This let's us easily use a single type for all Saprus messages, and unwrap the specific type with a switch.
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|