summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Use dynamic array instead of arraylistHEADmasterRobby Zambito5 days
| | | | we know the size (assuming the len is correct) so we can preallocate the whole array
* Depend on clap the same way as networkRobby Zambito6 days
|
* Don't print help after sending messageRobby Zambito6 days
|
* Add comment for cli example referenceRobby Zambito6 days
|
* Allow caller to specify what kind of message to send with argRobby Zambito6 days
|
* Nicer message for no responseRobby Zambito6 days
|
* Handle network blocking wellRobby Zambito6 days
|
* Don't use multi threading where it is not requiredRobby Zambito6 days
|
* Last handshake packet uses non 8888 portRobby Zambito6 days
|
* Complete the handshakeRobby Zambito6 days
|
* Receive and print the response from the sentinelRobby Zambito6 days
|
* Initial awaiting for handshake responseRobby Zambito6 days
| | | | | seems like i might be getting my own initial connection? I get a response even without the sentinal running.
* Start proper connection handshakeRobby Zambito6 days
|
* Move binary back to zaprusRobby Zambito6 days
| | | | Also clean up the args for the aux functions by computing the type instead of passing it
* Correctly handle the endiness and packedness of the the header reading and ↵Robby Zambito6 days
| | | | writing
* Write the header as a packed intRobby Zambito6 days
| | | | this seems like the best way to do it.
* Not using writerRobby Zambito6 days
| | | | | 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.
* Initial testing of connection messageRobby Zambito6 days
|
* Move sendRelay logic to Saprus structRobby Zambito6 days
|
* Break relay into a specific programRobby Zambito6 days
|
* Move types to their own fileRobby Zambito6 days
| | | | Make it so I can specify the payload message
* GREATLY improve clarityRobby Zambito6 days
|
* Move dba to top level scopeRobby Zambito6 days
| | | | This makes it so references to it are lazily compiled, so I can throw a compileError if it is referenced in the wrong mode.
* add comments!!!!!Robby Zambito6 days
|
* move aux funcs back into the unionRobby Zambito6 days
| | | | also move the body of the base64 handling back to the only place it is used now
* Remove redundant comptimeRobby Zambito6 days
| | | | Move edge together at the end of the switch
* Properly initialize the SaprusMessage fromBytesRobby Zambito6 days
| | | | Will actually use the provided packet type inline.
* dedup someRobby Zambito6 days
| | | | Still need to clean up fromBytesAux
* Break out encoding and decoding into its own functionsRobby Zambito6 days
|
* Add decoding connection messagesRobby Zambito6 days
|
* Add packet decodingRobby Zambito6 days
| | | | Big bug where I was setting the payload length do be the pre-encoded size rather than the encoded size.
* Small cleanupRobby Zambito6 days
| | | | Rename allocator to gpa (general purpose allocator) and move DebugAllocator type out of main
* Remove unnecessary explicit castRobby Zambito6 days
| | | | Remove unnecessary Self declaration.
* Specify endianness when writing the header structRobby Zambito6 days
|
* Explicitly specify the size of connection optionsRobby Zambito6 days
| | | | This makes it so specifying the wrong number of options would actually throw a compile time error.
* Clean up string handlingRobby Zambito6 days
|
* Make header always a packed structRobby Zambito6 days
| | | | This lets us easily use the same writeStructe(header) pattern to write the header for each message type.
* Base64 encode relay messageRobby Zambito6 days
| | | | write the packed connection struct directly instead of each of the fields.
* Add connection message typeRobby Zambito6 days
|
* Remove testsRobby Zambito6 days
|
* Working with nice unionRobby Zambito6 days
| | | | This let's us easily use a single type for all Saprus messages, and unwrap the specific type with a switch.
* it works!Robby Zambito6 days
|
* Getting some data but malformedRobby Zambito6 days
| | | | | | | 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 functionsRobby Zambito6 days
|
* Added network depRobby Zambito6 days
|
* Remove libRobby Zambito6 days
|
* Initial commitRobby Zambito6 days