Date: Thu, 14 Oct 1999 16:18:07 +0100 (MET) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: singuru@wipinfo.soft.net Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: multicast set ttl value... (fwd) Message-ID: <199910141518.QAA04948@labinfo.iet.unipi.it> In-Reply-To: <9910141559.AA23897@tagore.wipinfo.soft.net> from "S.RadhaKrishna" at Oct 14, 99 03:57:23 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> Hi all, > I'm using the following call to set the ttl value (after doing a successful > socket call) > ------ > ttl=5; > if (setsockopt(sockfd, IPPROTO_IP, IP_MULTICAST_TTL, > (char *)&ttl, sizeof(ttl)) < 0) > { > printf("\nserv.c: setting of TTL value failed \n"); > perror("setsockopt"); > exit(1); > } > --------- > It works on unix but not on NT/98. I tried declaring "ttl" as > char/int/short. But it didn't help. I would be thankful if any one can > provide me some help on this. been there, done that, on windows apart from the different type (i think it needs to be int) you can only set the ttl after you have bound the socket to a multicast address. not totally nonsense, but definitely "different" from unix cheers luigi > -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http://www.iet.unipi.it/~luigi/ngc99/ ==== First International Workshop on Networked Group Communication ==== -----------------------------------+------------------------------------- > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199910141518.QAA04948>