Working TCP fastopen for connect-send.

This commit is contained in:
Ian Gulliver
2016-02-27 12:41:56 -08:00
parent 79fc645fa0
commit 2c5b6419d6
7 changed files with 51 additions and 32 deletions

View File

@@ -1,7 +1,9 @@
#pragma once
struct buf;
struct peer;
void outgoing_cleanup(void);
typedef void (*outgoing_connection_handler)(int fd, void *, struct peer *);
void outgoing_new(char *, char *, outgoing_connection_handler, void *, uint32_t *);
typedef void (*outgoing_get_hello)(struct buf **, void *);
void outgoing_new(char *, char *, outgoing_connection_handler, outgoing_get_hello, void *, uint32_t *);