summaryrefslogtreecommitdiffstats
path: root/hicn-light/src/hicn/io/listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'hicn-light/src/hicn/io/listener.h')
-rw-r--r--hicn-light/src/hicn/io/listener.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/hicn-light/src/hicn/io/listener.h b/hicn-light/src/hicn/io/listener.h
index 3d195ee88..ef1955b12 100644
--- a/hicn-light/src/hicn/io/listener.h
+++ b/hicn-light/src/hicn/io/listener.h
@@ -27,6 +27,8 @@
#define listener_h
#include <hicn/utils/address.h>
+#include <hicn/io/addressPair.h>
+#include <hicn/core/connection.h>
struct listener_ops;
typedef struct listener_ops ListenerOps;
@@ -101,5 +103,8 @@ struct listener_ops {
* @endcode
*/
int (*getSocket)(const ListenerOps *ops);
+
+ unsigned (*createConnection)(ListenerOps *listener, int fd, const AddressPair *pair);
+ const Connection * (*lookupConnection)(ListenerOps * listener, const AddressPair *pair);
};
#endif // listener_h