Raw sockets (really: Unix School of Broadcasting)

Brian Atkins atkins at nbires.UUCP
Fri Aug 8 04:00:47 AEST 1986


In article <337 at comp.lancs.ac.uk>, rodger at dcl-cs.ac.uk writes:
> Can anyone out there in netland offer any advice, code, hints, photographs,
> etc on how one gets broadcasting to work with sockets.

The best place to find examples of broadcasting network
code is in the 4.2 rwhod code.

A large portion of this code (the configure() function, to be exact)
determines what interfaces are available and if they support
hardware broadcast or not.  Once all the "neighbors" (network
and point-point interfaces) have been collected, broadcasting
is done by sending to each neighbor.  Neighbor addresses
are either broadcast (if the HW supports it) or the
destination address of a point to point connection.

Brian Atkins   ...{attunix, hao, allegra, ucbvax}!nbires!atkins
NBI Inc., P.O. Box 9001, Boulder CO 80301	(303) 444-5710



More information about the Comp.unix.wizards mailing list