aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/network/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/charon/network/socket.h')
-rw-r--r--src/charon/network/socket.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/charon/network/socket.h b/src/charon/network/socket.h
index 7e6623fec..2f1f62727 100644
--- a/src/charon/network/socket.h
+++ b/src/charon/network/socket.h
@@ -30,7 +30,7 @@ typedef struct socket_t socket_t;
#include <library.h>
#include <network/packet.h>
#include <utils/host.h>
-#include <utils/linked_list.h>
+#include <utils/enumerator.h>
/**
* Maximum size of a packet.
@@ -85,6 +85,13 @@ struct socket_t {
status_t (*send) (socket_t *this, packet_t *packet);
/**
+ * Enumerate the underlying sockets.
+ *
+ * @return enumerator_t object
+ */
+ enumerator_t *(*create_enumerator) (socket_t *this);
+
+ /**
* Destroy socket.
*/
void (*destroy) (socket_t *this);