[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to Send UDP broadcasts over Socket



Title: How to Send UDP broadcasts over Socket

hi,

How to send UDP broadcast messages over sockets
Suppose that I have a socket created with AF_INET+SOCK_DGRAM
and the relevant option set [SO_BROADCAST] using the
setsockopt( ) call, whether setting the destn. Ip-addr to "255.255.255.255"
+ the intended port will work??. Or Whether the kernel will ignore the ip-addr part[destn.]
when the SO_BROADCAST option is set??.

Rgds,
Sriram NS.