Christian Decker
f35e29607d
wire: Fix include order in wire_io.h
Signed-off-by: Christian Decker <decker.christian@gmail.com>
7 years ago
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>
7 years ago
Rusty Russell
3d316518fd
wire: use 26-bit lengths for inter-daemon messaging.
Fixes : #289
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
7 years ago
Rusty Russell
df7b68eea9
wire/wire_io: support take() arg to io_write_wire().
This simplifies memory management, but means we have to keep the
original pointer.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago
Rusty Russell
a10ea23e0d
wire: add ccan/io helpers to send (unencrypted) messages between damones.
Format is "le16 len; u8 message[len]" same as wire format specified in
BOLTs, even though the endian conversion is overkill for local messages.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
8 years ago