summaryrefslogtreecommitdiff
path: root/lib/listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/listener.h')
-rw-r--r--lib/listener.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/listener.h b/lib/listener.h
new file mode 100644
index 0000000..8f7c543
--- /dev/null
+++ b/lib/listener.h
@@ -0,0 +1,14 @@
+/* Copyright 2013 NORDUnet A/S. All rights reserved.
+ See LICENSE for licensing information. */
+
+/** Maximum number of pending connection requests. */
+#define LISTENER_BACKLOG -1
+
+void listener_accept_cb_(struct evconnlistener *evconnlistener,
+ evutil_socket_t fd,
+ struct sockaddr *sa,
+ int socklen,
+ void *data);
+void listener_err_cb_(struct evconnlistener *listener, void *user_data);
+struct rs_listener *listener_create(struct rs_context *ctx,
+ struct rs_listener **rootp);