From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,926e231c0e57abba X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-23 07:15:33 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.cic.net!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!decwrl!pa.dec.com!src.dec.com!crl.dec.com!nntpd.lkg.dec.com!mrnews.mro.dec.com!zuunix.zuo.dec.com!pbs From: pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team) Newsgroups: comp.unix.osf.osf1 Subject: Re: [Q] Help with an IP Multicast example. Date: 23 Aug 1994 13:44:29 GMT Organization: Digital Equipment Corporation - Marlboro, MA Message-ID: <33cuft$45m@mrnews.mro.dec.com> References: <339tgt$3et@mrnews.mro.dec.com> NNTP-Posting-Host: zuunix.zuo.dec.com X-Newsreader: Tin 1.1 PL3 pbs@zuunix.zuo.dec.com (Philip Shearer @ZUO-DC EBS-Team) writes: : uname -a == OSF1 macihine_name V2.1 250 alpha : : The following example of an IP Multicast program was posted to : comp.unix.programmer. : When I try to run it ( having made changes to the address) on an OSF1 There is no need to touch the address. : machine . I get an error message on the second setsockopt() function call. : "[2]setsockopt: Invalid argument" : : Any idears why? I found the bug causing the above in the line: sin.sin_addr.s_addr = htonl(inet_addr(GROUP)); should be: sin.sin_addr.s_addr = inet_addr(GROUP) ; But a second error: setsockopt(SO_REUSEADDR) SO_REUSEADDR seems to be broken is this a feature in OSF1? Regards Philip