🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: UDP Client/Server broadcasting

#2687
From: Remy Lebeau (TeamB)
Date: Tue, 07 Feb 2006 18:19
18 lines
1708 bytes
"Lapo Guidi" <lapoguidi@antispam.com> wrote in message
news:43e8b39a$1@newsgroups.borland.com...

> The problem I have is that when I broadcast using the Client, the
> OnUDPRead of the Server is fired 2 times, so I receive every
> data doubled.

Do you have multiple NIC cards on the client and/or server?  If so, then on
the server, you are definately binding to all available NIC cards, since you
left the Bindings collection empty.  Try adding an entry to the Bindings
collection and set its IP property to a specific NIC card only.  When the
client broadcasts, all of the IPs are likely receiving the packet, which is
why you get multiple events.  If you bind to specific IPs only, you won't
get so many events.


Gambit
Technical Details
Message-ID: <43e8e414$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.agarik.com!194.2.0.24.MISMATCH!oleane.net!oleane!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43e8b39a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3dbb3fd777ca4bbe
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43e8b39a$1@newsgroups.borland.com>
Subject: Re: UDP Client/Server broadcasting
Date: Tue, 7 Feb 2006 10:19:45 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <43e8e414$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1139336212 68.69.17.41 (7 Feb 2006 10:16:52 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.google.com!news.glorb.com!news.agarik.com!194.2.0.24.MISMATCH!oleane.net!oleane!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail