aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/network/socket.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2008-11-11 09:22:00 +0000
committerTobias Brunner <tobias@strongswan.org>2008-11-11 09:22:00 +0000
commitea625fabf9ecde1acaa953f2ba0c1fae1af22c35 (patch)
treea0b184738547aa823d437e44ccbd9daa65ee0f79 /src/charon/network/socket.h
parentc117f24e61a204b1de6f784f174ae290f1876021 (diff)
downloadstrongswan-ea625fabf9ecde1acaa953f2ba0c1fae1af22c35.tar.bz2
strongswan-ea625fabf9ecde1acaa953f2ba0c1fae1af22c35.tar.xz
merging kernel_klips plugin back into trunk
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);