I’m using QNX 4.25 and have installed the TCP/IP & DTK. I want to
braodcast a message using a SOCK_DGRAM socket.
- What do I set the setsockopt() to?
- Do I need to do this?
- What is the broadcast IP address for a UDP socket as required in the
sockaddr_in structure?
Tony Wright <tony.wright@dsto.defence.gov.au> wrote:
: I’m using QNX 4.25 and have installed the TCP/IP & DTK. I want to
: braodcast a message using a SOCK_DGRAM socket.
: - What do I set the setsockopt() to?
SO_BROADCAST
: - Do I need to do this?
Yes
: - What is the broadcast IP address for a UDP socket as required in the
: sockaddr_in structure?
Depends on whether you want to do a subnet, network or limited
broadcast (INADDR_BROADCAST).
-seanb