Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!rpi!batcomputer!munnari.oz.au!metro!cs.uow.edu.au!wolfen!zahra From: zahra@wolfen.cc.uow.oz (Andrew Zahra Telecom) Newsgroups: comp.unix.programmer Subject: broadcast sockets Keywords: socket Message-ID: <6746@wolfen.cc.uow.oz> Date: 18 Jan 91 06:22:05 GMT Organization: Uni of Wollongong, NSW, Australia Lines: 17 I am trying to write a program which will be able to broadcast messages to all other machines on the local network. I am using a datagram socket and have not had much success with various combinations of setting socket options (SO_BROADCAST) and doing a connect to INADDR_BROADCAST. I either get a network unreachable error or an error from the bind indicating it can't allocate the requested address. If anyone has a minimal code example of how to do this it would be very welcome and may stop me tearing my hair out. Thanks in advance, Andrew Andrew Zahra AARNet zahra@wolfen.cc.uow.edu.au Telecom Australia ACSNet zahra@wolfen.cc.uow.oz.au Customised Software Solutions Centre