how to send UDP broadcasts over sockets

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

 



hi,

(1) 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 connecting to "255.255.255.255"
+ the intended port will work??.

(2) Is there any call to find the broadcast address of the
local subnet??. On the network I found a thread discussing
this topic. The solution suggested there was to use the
SIOCGIFBRDADDR ioctl, but to execute it we need the socket
to be bound to a device. Any alternate solution available
for this??.

Rgds,
Sriram NS.
__________________________________
Sign up for your free netster.com 
      email account today!
     http://mail.netster.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux