summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-01-21 22:08:15 +0000
committerLennart Poettering <lennart@poettering.net>2005-01-21 22:08:15 +0000
commit4ba1a4b0b4488e5058af67b789187735b529075e (patch)
treed1d0f8ee6c36659b552fc371cad67678ae90b7c8 /socket.h
parentb25580915c7223c276348c39d5e7ed496a58a26e (diff)
add infrastrtcur for creating and sending DNS packets
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@10 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/socket.h b/socket.h
index 8d8b128..472b115 100644
--- a/socket.h
+++ b/socket.h
@@ -1,11 +1,17 @@
#ifndef foosockethfoo
#define foosockethfoo
-int flx_open_socket(int iface);
+#include <netinet/in.h>
+#include "dns.h"
-int flx_send_packet(int fd, int iface, struct flx_dns_packet *p);
+gint flx_open_socket_ipv4(void);
+gint flx_open_socket_ipv6(void);
+gint flx_send_dns_packet_ipv4(gint fd, gint iface, flxDnsPacket *p);
+gint flx_send_dns_packet_ipv6(gint fd, gint iface, flxDnsPacket *p);
+flxDnsPacket *flx_recv_dns_packet_ipv4(gint fd, struct sockaddr_in*ret_sa, gint *ret_iface, gint *ret_ttl);
+flxDnsPacket *flx_recv_dns_packet_ipv6(gint fd, struct sockaddr_in6*ret_sa, gint *ret_iface, gint *ret_ttl);
#endif