🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #333

Re: (INDY) UDP binding and broadcast

#333
From: Bob Gonder
Date: Tue, 15 Apr 2008 19:16
16 lines
1821 bytes
johnG wrote:

>>The Broadcast() method broadcasts to "255.255.255.255" by >default, which sends to all available subnets.
>
>Does it broadcast to all subnets accessible by a specific (physical network) network adapter, or all subnets across all adapters? Meaning that binding does not apply when calling broadcast()?

Broadcast is...broad...it goes to all nodes that meet the mask.
AFAIK it has no concept of network adapters.

Look again at Remy's last post..
        // 10.90.80.255 = broadcast address of the "10.90.80.xxx" subnet
If all of your adapters are in the 10.90.80.x range, they will all broadcast.
If one of your adapters is, say 10.90.81.x, it won't broadcast.

There is a discussion of this (it's .Net, but still applies) here:
http://msdn2.microsoft.com/en-us/library/tst0kwb1(vs.71).aspx
Technical Details
Message-ID: <54v904pjrp2jrvqic1kv3ojm6aqpub5ljd@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4804bc99@newsgroups.borland.com> <4804dc70$1@newsgroups.borland.com> <4804eb76$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,7b3ef48fe39eea8e
X-Google-Attributes: gid11508e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: (INDY) UDP binding and broadcast
Date: Tue, 15 Apr 2008 12:16:38 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <54v904pjrp2jrvqic1kv3ojm6aqpub5ljd@4ax.com>
References: <4804bc99@newsgroups.borland.com> <4804dc70$1@newsgroups.borland.com> <4804eb76$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.144.72
X-Trace: newsgroups.borland.com 1208286996 67.77.144.72 (15 Apr 2008 12:16:36 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail