| Commit message (Collapse) | Author | Age |
| |
|
| |
|
|
|
|
| |
Use this from the relay message
|
|
|
|
| |
The latter is helpful for the lifetime of the message.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
For some reason I am still getting this:
2025/05/10 16:37:06 Error decoding message: SGVsbG8gZGFya25lc3MgbXkgb2xkIGZyaWVuZA==::53475673624738675a4746796132356c63334d6762586b676232786b49475a79615756755a413d3daaaa
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
The dest can be specified as a 4 char ASCII string, or as an IPv4 address.
|
|
|