Broadcasts on SunOS 4.0(.1)

Jussi Eloranta eloranta at tukki.jyu.fi
Thu Feb 9 16:26:07 AEST 1989


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 at tukki.jyu.fi
Finland



More information about the Comp.unix.wizards mailing list