From 5a99ade413b97a780758f5c8f927604ad6c8e57b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 12 Apr 1999 14:57:46 +0000 Subject: Fixed a couple of bugs in handling of multicast sockets. See comments in lib/socket.h for a detailed guide on how to use them. --- lib/socket.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/socket.h b/lib/socket.h index 2c5ab4f..bb9c1c3 100644 --- a/lib/socket.h +++ b/lib/socket.h @@ -55,8 +55,16 @@ void sk_dump_all(void); #define SK_TCP 2 #define SK_UDP 3 /* ? ? - - - ? ? */ #define SK_UDP_MC 4 /* ? ? * * * * - */ -#define SK_IP 5 /* ? ? - * - ? ? */ -#define SK_IP_MC 6 /* ? ? * * * * - */ +#define SK_IP 5 /* ? - - * - ? ? */ +#define SK_IP_MC 6 /* ? - * * * * - */ #define SK_MAGIC 7 /* Internal use by sysdep code */ +/* + * Multicast sockets are slightly different from the other ones: + * If you want to send packets only, just set the destination + * address to the corresponding multicast group and iface to + * the interface to be used. If you also want receiving, set + * source address to the same multicast group as well. + */ + #endif -- cgit v1.2.3