2016-02-17 17:19:57 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2016-02-27 12:41:56 -08:00
|
|
|
struct buf;
|
2016-02-24 20:15:09 -08:00
|
|
|
struct peer;
|
|
|
|
|
|
2016-02-25 23:37:37 -08:00
|
|
|
void outgoing_cleanup(void);
|
2016-02-24 20:15:09 -08:00
|
|
|
typedef void (*outgoing_connection_handler)(int fd, void *, struct peer *);
|
2016-02-27 12:41:56 -08:00
|
|
|
typedef void (*outgoing_get_hello)(struct buf **, void *);
|
|
|
|
|
void outgoing_new(char *, char *, outgoing_connection_handler, outgoing_get_hello, void *, uint32_t *);
|