2016-02-17 13:41:33 -08:00
|
|
|
#pragma once
|
|
|
|
|
|
2016-02-25 16:17:25 -08:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
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 incoming_cleanup(void);
|
2016-02-24 20:15:09 -08:00
|
|
|
typedef void (*incoming_connection_handler)(int fd, void *, struct peer *);
|
2016-02-27 12:41:56 -08:00
|
|
|
typedef void (*incoming_get_hello)(struct buf **, void *);
|
|
|
|
|
void incoming_new(char *, char *, incoming_connection_handler, incoming_get_hello, void *, uint32_t *);
|