[SDL] SDL_net and broadcasting

Clemens Kirchgatterer clemens at thf.ath.cx
Mon Sep 30 09:45:01 PDT 2002


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 ...
clemens




More information about the SDL mailing list