| 15 | #include <wire/wire_sync.h> |
| 16 | |
| 17 | void peer_write(struct per_peer_state *pps, const void *msg TAKES) |
| 18 | { |
| 19 | status_peer_io(LOG_IO_OUT, NULL, msg); |
| 20 | |
| 21 | /* We ignore write errors; we might still have something to read, |
| 22 | * so we'd rather fail there. */ |
| 23 | wire_sync_write(pps->peer_fd, msg); |
| 24 | } |
| 25 | |
| 26 | u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps) |
| 27 | { |
no test coverage detected