Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - receiving udp broadcasts: (2 Items)
   
receiving udp broadcasts  
Hi,
i am trying to receive broadcastmessages that i send to the IP address 10.1.1.255.

All my target are in this subnet.

The problem is that all broadcastmessages seem to be ignored by the qnx targets.

The targets plattforms in my subnet are a mix of Win7, WinXp, WinCE and QNX6.5. And with the exception of the qnx target
 it works fine.

Unicast to the qnx targets work.

I use the function recvFrom and setsockopt with SO_BROADCAST as parameter after opening the socket.

What else do i have to do to receive the broadcasts? Any help would be a appreciated.

If a more detailed description is needed plz tell me :)
Re: receiving udp broadcasts  
Did some checks it seems the messages get dropped.

# netstat -p udp
udp:
        4806 datagrams received
        0 with incomplete header
        0 with bad data length field
        0 with bad checksum
        74 dropped due to no socket
        4725 broadcast/multicast datagrams dropped due to no socket
        0 dropped due to full socket buffers
        7 delivered
        81 PCB hash misses
        3896 datagrams output