AW: [Gambas-user] UDP Broadcast

Benoit Minisini gambas at ...1...
Sun May 21 20:30:50 CEST 2006


On Sunday 21 May 2006 16:59, Michi wrote:
> Hi again.
>
> Finally I made it to patch the gb.net source code
> to no longer complain about the broadcast adress
> "255.255.255.255".
>
> I added setsocketopt to the write-routine and to
> the dgram_start-routine in CUDPSOCKET.C
>
> Now there is a new problem.
>
> Gambas/Debian does not seem to receive UDP broadcasts
> from systems being from another subnet.
>
> Meaning: PC1 having 192.168.181.20
> Meaning: PC2 having 182.168.181.123
>
> Is there again any trick with this?
>
> Thanks,
> bye,
> Michael.
>

If I remember, UDP broadcast packets have a "Time To Live" option that is the 
number of subnet it can go through. This number is one by default, so by 
default UDP broadcasts stay in the same subnet. 

But I can be wrong, as I am not a network specialist!

I will add all useful TCP/UDP/IP socket options as I did with the Broadcast 
property in 1.9.30.

Regards,

-- 
Benoit Minisini





More information about the User mailing list