projects
/
trust_router.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Log incoming IP address when accepting a connection
[trust_router.git]
/
include
/
tr_socket.h
diff --git
a/include/tr_socket.h
b/include/tr_socket.h
index
064c6fc
..
e90a912
100644
(file)
--- a/
include/tr_socket.h
+++ b/
include/tr_socket.h
@@
-37,7
+37,9
@@
#include <stdlib.h>
#include <poll.h> // for nfds_t
+#include <sys/socket.h>
nfds_t tr_sock_listen_all(unsigned int port, int *fd_out, nfds_t max_fd);
+int tr_sock_accept(int sock);
#endif //TRUST_ROUTER_TR_SOCKET_H