aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/network/socket.h
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-23 15:25:43 +0000
committerMartin Willi <martin@strongswan.org>2006-03-23 15:25:43 +0000
commitdec598220b9a293c4ec75e593ab642a8945fa4fc (patch)
treea97247afbdb29e2b071933f8c9667a7ffa03cca3 /Source/charon/network/socket.h
parent3264ce50b912f2aba09d2d8e7ee7ed9d364d9e46 (diff)
downloadstrongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.bz2
strongswan-dec598220b9a293c4ec75e593ab642a8945fa4fc.tar.xz
- rewrite of logger_manager, uses now one instance per context
- cleanups for logger here and there - removed critical flag check in payload verification (conformance to IKEv2) - so thats and theres everywere... ;-)
Diffstat (limited to 'Source/charon/network/socket.h')
-rw-r--r--Source/charon/network/socket.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/charon/network/socket.h b/Source/charon/network/socket.h
index 7e43ffab5..498e7700a 100644
--- a/Source/charon/network/socket.h
+++ b/Source/charon/network/socket.h
@@ -93,6 +93,15 @@ struct socket_t {
status_t (*send) (socket_t *sock, packet_t *packet);
/**
+ * @brief Check if socket listens on an address.
+ *
+ * @param sock socket_t object to work on
+ * @param host address to check
+ * @return TRUE if listening on host, FALSE otherwise
+ */
+ bool (*is_listening_on) (socket_t *sock, host_t *host);
+
+ /**
* @brief Destroy sockets.
*
* close sockets and destroy socket_t object