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

@@ -41,6 +41,7 @@ static void receive_new(int, void *, struct peer *);
static struct flow _receive_flow = {
.name = "receive",
.socket_connected = socket_connected_receive,
.new = receive_new,
.ref_count = &peer_count_in,
};
@@ -133,8 +134,6 @@ static void receive_read(struct peer *peer) {
static void receive_new(int fd, void __attribute__((unused)) *passthrough, struct peer *on_close) {
peer_count_in++;
socket_receive(fd);
struct receive *receive = malloc(sizeof(*receive));
assert(receive);