Move more socket options into the flow framework.

This commit is contained in:
Ian Gulliver
2016-03-02 21:51:30 -08:00
parent 91775999d8
commit 10ba451458
8 changed files with 18 additions and 9 deletions

View File

@@ -39,6 +39,7 @@ static void send_get_hello(struct buf **, void *);
static struct flow _send_flow = {
.name = "send",
.socket_ready = socket_ready_send,
.socket_connected = socket_connected_send,
.new = send_new,
.get_hello = send_get_hello,
.ref_count = &peer_count_out,
@@ -105,8 +106,6 @@ static void send_new(int fd, void *passthrough, struct peer *on_close) {
peer_count_out++;
socket_send(fd);
struct send *send = malloc(sizeof(*send));
assert(send);