Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!kth!draken!tut!santra!tukki!eloranta From: eloranta@tukki.jyu.fi (Jussi Eloranta) Newsgroups: comp.unix.wizards Subject: Broadcasts on SunOS 4.0(.1) Message-ID: <428@tukki.jyu.fi> Date: 9 Feb 89 06:26:07 GMT Reply-To: eloranta@tukki.jyu.fi (Jussi Eloranta) Followup-To: comp.unix.wizards Organization: University of Jyvaskyla, Finland Lines: 18 I've couple of questions about broadcasts on sunos 4.0(.1): 1) What should I do to send a broadcast message (udp, guess it's not possible with tcp..)? Just use a broadcast address (something like x.x.x.255) in structure sockaddr_in and use recvfrom and sendto calls to send/receive data? Well, if this is the way it should work then: 2) Does it require root privs? (I remeber that I read from somewhere that 'older' (= bsd 4.2) systems require root privs? 3) When all else fails.. does someone have a short example that uses broadcasts? Jussi Eloranta -- ============================================================================ Jussi Eloranta Bitnet/Earn/Internet/(whatever): University of Jyvaskyla, eloranta@tukki.jyu.fi Finland