[SDL] SDL_net and broadcasting
linux_dr at yahoo.com
Mon Sep 30 09:59:01 PDT 2002
On Mon, 2002-09-30 at 09:43, Clemens Kirchgatterer wrote:
> nuage <nuage at ysagoon.com> wrote:
> > yes, any address ending with .255 is a broadcasting address.
> is this really true? i think not. it depends on your subnetting. the
> broadcast address is the one with all host bits set.
> i use binary notation to make it clear:
> netmask: 11111111.11111111.11111111.11110000
> network: 00001101.11001100.01010101.00110000
> ip: 00001101.11001100.01010101.00110001
> broadcast: 00001101.11001100.01010101.00111111
> any address ending with 255 is a broadcast address in class C networks
> (netmask: XXX.XXX.XXX.0).
> i hope i didn't mess something up. :-)
> regards ...
You are correct... a broadcast address is (by convention) any address
where the IP address bitwise-ORed with its netmask is 255.255.255.255...
like- wise, the conventional network and gateway addresses have similar
definitions. Unfortunatly, these are appearantly just conventions, and
can be changed at the whim of the network administrator...
More information about the SDL