TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Rob Basler
from: Jonathan de Boyne Pollard
date: 1999-12-02 10:26:27
subject: sendto() doesn`t work on

 RB> I'm sending out a broadcast and then waiting for a response on the
 RB> same socket.  It is the broadcast call that is failing with the No
 RB> route to host error.  If I specify an address for the call to the
 RB> server rather than using a broadcast, it works as expected.
 RB>
 RB> I find it most odd that it works in Warp 4 but not in WSeB.  You'd
 RB> think that they would have tested broadcast calls in the 4.1 TCP/IP
 RB> stack.

I find it hard to believe that broadcast doesn't work, too.  (-:

You've checked the basics, haven't you ?  You've checked that you've
configured a broadcast address for that interface in TCP/IP configuration, for 
example, yes ?

Try pausing the application after the call to bind() but before the call to
sendto() and using `netstat -s' to look at the socket address.  Try sending an 
ICMP datagram to the same broadcast IP address using `ping'.

 ¯ JdeBP ®

--- FleetStreet 1.22 NR
* Origin: JdeBP's point, using Squish (2:257/609.3)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.