| 7 | #include <wire/wire_sync.h> |
| 8 | |
| 9 | void peer_write(struct per_peer_state *pps, const void *msg TAKES) |
| 10 | { |
| 11 | status_peer_io(LOG_IO_OUT, NULL, msg); |
| 12 | |
| 13 | /* We ignore write errors; we might still have something to read, |
| 14 | * so we'd rather fail there. */ |
| 15 | wire_sync_write(pps->peer_fd, msg); |
| 16 | } |
| 17 | |
| 18 | u8 *peer_read(const tal_t *ctx, struct per_peer_state *pps) |
| 19 | { |
no test coverage detected