Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Make C struct match the binary API more closelypush-xrxworrupytk | Robby Zambito | 8 hours |
| | | | | Also make the internal conversion function return errors properly | ||
* | Convert from Zig struct to C struct | Robby Zambito | 8 hours |
| | |||
* | use InstallHeader function to install the header | Robby Zambito | 9 hours |
| | |||
* | successfully build c interface | Robby Zambito | 3 days |
| | |||
* | Initial C api | Robby Zambito | 7 days |
| | |||
* | Add CLI to specify dest for relay messagesHEADmaster | Robby Zambito | 7 days |
| | | | | The dest can be specified as a 4 char ASCII string, or as an IPv4 address. | ||
* | Rename Saprus to Client internally | Robby Zambito | 12 days |
| | |||
* | Break out the impl to a lib | Robby Zambito | 13 days |
| | | | | This will make it easier to make a C library. | ||
* | Do some things for invyinvy | Robby Zambito | 13 days |
| | |||
* | Use dynamic array instead of arraylist | Robby Zambito | 2025-04-06 |
| | | | | we know the size (assuming the len is correct) so we can preallocate the whole array | ||
* | Depend on clap the same way as network | Robby Zambito | 2025-04-06 |
| | |||
* | Don't print help after sending message | Robby Zambito | 2025-04-06 |
| | |||
* | Add comment for cli example reference | Robby Zambito | 2025-04-06 |
| | |||
* | Allow caller to specify what kind of message to send with arg | Robby Zambito | 2025-04-06 |
| | |||
* | Nicer message for no response | Robby Zambito | 2025-04-06 |
| | |||
* | Handle network blocking well | Robby Zambito | 2025-04-06 |
| | |||
* | Don't use multi threading where it is not required | Robby Zambito | 2025-04-06 |
| | |||
* | Last handshake packet uses non 8888 port | Robby Zambito | 2025-04-06 |
| | |||
* | Complete the handshake | Robby Zambito | 2025-04-06 |
| | |||
* | Receive and print the response from the sentinel | Robby Zambito | 2025-04-06 |
| | |||
* | Initial awaiting for handshake response | Robby Zambito | 2025-04-06 |
| | | | | | seems like i might be getting my own initial connection? I get a response even without the sentinal running. | ||
* | Start proper connection handshake | Robby Zambito | 2025-04-06 |
| | |||
* | Move binary back to zaprus | Robby Zambito | 2025-04-06 |
| | | | | 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 Zambito | 2025-04-06 |
| | | | | writing | ||
* | Write the header as a packed int | Robby Zambito | 2025-04-06 |
| | | | | this seems like the best way to do it. | ||
* | Not using writer | Robby Zambito | 2025-04-06 |
| | | | | | 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 message | Robby Zambito | 2025-04-06 |
| | |||
* | Move sendRelay logic to Saprus struct | Robby Zambito | 2025-04-06 |
| | |||
* | Break relay into a specific program | Robby Zambito | 2025-04-06 |
| | |||
* | Move types to their own file | Robby Zambito | 2025-04-06 |
| | | | | Make it so I can specify the payload message | ||
* | GREATLY improve clarity | Robby Zambito | 2025-04-06 |
| | |||
* | Move dba to top level scope | Robby Zambito | 2025-04-06 |
| | | | | 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 Zambito | 2025-04-06 |
| | |||
* | move aux funcs back into the union | Robby Zambito | 2025-04-06 |
| | | | | also move the body of the base64 handling back to the only place it is used now | ||
* | Remove redundant comptime | Robby Zambito | 2025-04-06 |
| | | | | Move edge together at the end of the switch | ||
* | Properly initialize the SaprusMessage fromBytes | Robby Zambito | 2025-04-06 |
| | | | | Will actually use the provided packet type inline. | ||
* | dedup some | Robby Zambito | 2025-04-06 |
| | | | | Still need to clean up fromBytesAux | ||
* | Break out encoding and decoding into its own functions | Robby Zambito | 2025-04-06 |
| | |||
* | Add decoding connection messages | Robby Zambito | 2025-04-06 |
| | |||
* | Add packet decoding | Robby Zambito | 2025-04-06 |
| | | | | 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-06 |
| | | | | Rename allocator to gpa (general purpose allocator) and move DebugAllocator type out of main | ||
* | Remove unnecessary explicit cast | Robby Zambito | 2025-04-06 |
| | | | | Remove unnecessary Self declaration. | ||
* | Specify endianness when writing the header struct | Robby Zambito | 2025-04-06 |
| | |||
* | Explicitly specify the size of connection options | Robby Zambito | 2025-04-06 |
| | | | | 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-06 |
| | |||
* | Make header always a packed struct | Robby Zambito | 2025-04-06 |
| | | | | 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-06 |
| | | | | write the packed connection struct directly instead of each of the fields. | ||
* | Add connection message type | Robby Zambito | 2025-04-06 |
| | |||
* | Remove tests | Robby Zambito | 2025-04-06 |
| | |||
* | Working with nice union | Robby Zambito | 2025-04-06 |
| | | | | This let's us easily use a single type for all Saprus messages, and unwrap the specific type with a switch. |