Switch from sketchy dup() juggling to callbacks to retry outgoing connection.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
struct peer;
|
||||
|
||||
void incoming_cleanup();
|
||||
typedef void (*incoming_connection_handler)(int fd, void *);
|
||||
typedef void (*incoming_connection_handler)(int fd, void *, struct peer *);
|
||||
void incoming_new(char *, char *, incoming_connection_handler, void *);
|
||||
|
||||
Reference in New Issue
Block a user