]> git.meshlink.io Git - catta/blobdiff - socket.h
* Complete conflict detection stuff (including probing et al)
[catta] / socket.h
index 8d8b1289273f099dccf65e4fdec2ec56cb83f707..61d17a532f966ac22aa2bfcef980637aaade72a8 100644 (file)
--- a/socket.h
+++ b/socket.h
@@ -1,11 +1,23 @@
 #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, guint8 *ret_ttl);
+flxDnsPacket *flx_recv_dns_packet_ipv6(gint fd, struct sockaddr_in6*ret_sa, gint *ret_iface, guint8 *ret_ttl);
+
+int flx_mdns_mcast_join_ipv4(int index, int fd);
+int flx_mdns_mcast_join_ipv6(int index, int fd);
+
+int flx_mdns_mcast_leave_ipv4(int index, int fd);
+int flx_mdns_mcast_leave_ipv6(int index, int fd);
 
 #endif