Rusty Russell
a37c165cb9
common: move some files out of lightningd/
...
Basically all files shared by different daemons.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-08-29 17:54:14 +02:00
Rusty Russell
a436fa77fc
lightningd/msg_queue: add msg_wake helper.
...
A cleaner wrapper than a raw io_wake.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-04-25 22:00:28 +02:00
Rusty Russell
8be18ccfa1
lightningd/msg_queue: rename msg_is_fd to msg_extract_fd
...
Suggested-by: Christian Decker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-03-20 07:50:53 +10:30
Rusty Russell
bde872d34c
lightningd/msg_queue: support queueing/dequeueing of fds.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-03-20 07:50:53 +10:30
Christian Decker
8ae698d1dc
Migrating daemon_conn to msg_queue and msg_queue takes over messages
...
We have some duplication in handling queues, so this is an attempt at
deduplicating some of that work. `daemon_conn` now uses the
`msg_queue` and `channeld` was also migrated to `msg_queue`. At the
same time I made `msg_queue` create a copy of the messages or takes
over messages marked with `take()`. This should make cleaning up
messages easier.
2017-03-13 17:32:03 +01:00
Rusty Russell
cd62b74b1c
lightningd/msg_queue: helper for queues of messages/
...
Since they're short, we use a simple array. This can be replaced later.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2017-03-10 21:45:55 +10:30