aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-29 12:18:13 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-10-29 12:18:13 +0000
commit8c9cf87f25a81677b52ed1a309fea505d1c2174f (patch)
treea5a2de658bc8611452baf8dd76c00dba31e43ac5 /src/libutil/addr.h
parentf58fb61175aa8616b307ec29e919f5556d42777d (diff)
downloadrspamd-8c9cf87f25a81677b52ed1a309fea505d1c2174f.tar.gz
rspamd-8c9cf87f25a81677b52ed1a309fea505d1c2174f.zip
Rework and simplify listen sockets creation.
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index 16fe58a8d..c907d80c2 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -81,6 +81,15 @@ int rspamd_inet_address_connect (rspamd_inet_addr_t *addr, gint type,
gboolean async);
/**
+ * Listen on a specified inet address
+ * @param addr
+ * @param type
+ * @param async
+ * @return
+ */
+int rspamd_inet_address_listen (rspamd_inet_addr_t *addr, gint type,
+ gboolean async);
+/**
* Check whether specified ip is valid (not INADDR_ANY or INADDR_NONE) for ipv4 or ipv6
* @param ptr pointer to struct in_addr or struct in6_addr
* @param af address family (AF_INET or AF_INET6)