Rusty Russell
5cf34d6618
Remove tal_len, use tal_count() or tal_bytelen().
...
tal_count() is used where there's a type, even if it's char or u8, and
tal_bytelen() is going to replace tal_len() for clarity: it's only needed
where a pointer is void.
We shim tal_bytelen() for now.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2018-07-30 11:31:17 +02:00
Rusty Russell
29b83aed2a
wire: restore BE endian to wire headers for internal messages.
...
We don't anticipate daemons across machines, but you never know.
Suggested-by: Christian Decker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-29 14:40:34 +02:00
Rusty Russell
3d316518fd
wire: use 26-bit lengths for inter-daemon messaging.
...
Fixes : #289
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-09-29 14:40:34 +02:00
Rusty Russell
40ce29beac
wire_sync_write: support take()
...
We often want it to free the message after writing.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-06-27 10:25:53 +09:30
Rusty Russell
9d316e39cd
wire/wire_sync: helper routines for direct read/write of messages.
...
Some of the simple daemons want to use this, as do the status messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-01-10 15:21:20 +10:30