summaryrefslogtreecommitdiff
path: root/src/Client.zig
Commit message (Collapse)AuthorAge
* Use Client as var type instead of singletonpush-sqrvtkyntxqtRobby Zambito2025-05-11
|
* Fix issue returning stack pointerRobby Zambito2025-05-11
|
* Add broadcast initial interest using raw socketsRobby Zambito2025-05-11
| | | | Use this from the relay message
* Update gatorcat dep and use bytes for broadcast messageRobby Zambito2025-05-11
| | | | The latter is helpful for the lifetime of the message.
* Remove allocation for messagesRobby Zambito2025-05-10
|
* Add comments and fix testsRobby Zambito2025-05-10
| | | | | | | Also added networkBytesAsValue and restored bytesAsValue. These are useful for treating the bytes from the network directly as a Message. Otherwise, the init function would overwrite the packet type and length to be correct. I would like the message handling to fail if the message body is incorrect.
* fix use after freepush-tznmzxxxnnozRobby Zambito2025-05-10
|
* Attempt to base64 encode the connection payloadRobby Zambito2025-05-10
| | | | | | For some reason I am still getting this: 2025/05/10 16:37:06 Error decoding message: SGVsbG8gZGFya25lc3MgbXkgb2xkIGZyaWVuZA==::53475673624738675a4746796132356c63334d6762586b676232786b49475a79615756755a413d3daaaa
* Use slice for init, and add better error sets.Robby Zambito2025-05-10
| | | | | The slice sets us avoid allocating within the init function. This means init can't fail, and it also makes it easier to stack allocate messages (slice an array buffer, instead of creating a stack allocator).
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* (no commit message)Robby Zambito2025-05-10
|
* Starting real connectionsRobby Zambito2025-05-10
|
* Add CLI to specify dest for relay messagesRobby Zambito2025-04-19
| | | | The dest can be specified as a 4 char ASCII string, or as an IPv4 address.
* Rename Saprus to Client internallyRobby Zambito2025-04-14