home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.perl:4839 comp.sys.pyramid:167
- Path: sparky!uunet!darwin.sura.net!wupost!waikato.ac.nz!comp.vuw.ac.nz!cc-server4.massey.ac.nz!A.Raman
- Newsgroups: comp.lang.perl,comp.sys.pyramid
- Subject: Re: Perl4.19 setsockopt() ... Pyramid 9815 - fix
- Message-ID: <1992Jul21.042944.17050@massey.ac.nz>
- From: A.Raman@massey.ac.nz (Anand)
- Date: Tue, 21 Jul 92 04:29:44 GMT
- References: <1992Jul19.230304.1523@massey.ac.nz> <1992Jul21.002626.5432@massey.ac.nz>
- Organization: Massey University Computer Centre
- Lines: 24
-
- Hi,
-
- Sorry about this enormous number of repetitions. But the second
- post had a correction in it. Then I found I couldn't cancel the
- original one.
-
- Anyway, here is what I found finally worked:
-
- I needed to pack the option argument to setsockopt.
-
- I was doing:
-
- > setsockopt(S, &SOL_SOCKET, &SO_BROADCAST, 1);
-
- What I needed to do was:
-
- > setsockopt(S, &SOL_SOCKET, &SO_BROADCAST, pack("I", 1));
-
- Why that worked on the Ultrix machine, I still don't know. Does the
- Ultrix version of perl pack it for me?
-
- Thanks to everyone who clarified this.
-
- - &
-