Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!sri-spam!mordor!lll-crg!seismo!nbires!atkins From: atkins@nbires.UUCP (Brian Atkins) Newsgroups: net.unix-wizards Subject: Re: Raw sockets (really: Unix School of Broadcasting) Message-ID: <499@opus.nbires.UUCP> Date: Thu, 7-Aug-86 14:00:47 EDT Article-I.D.: opus.499 Posted: Thu Aug 7 14:00:47 1986 Date-Received: Sat, 9-Aug-86 07:39:29 EDT References: <337@comp.lancs.ac.uk> Organization: NBI,Inc, Boulder CO Lines: 17 Summary: where to find network broadcast code examples In article <337@comp.lancs.ac.uk>, rodger@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