🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Searching for potential servers

#3899
From: Hans Galema
Date: Tue, 17 May 2005 14:55
20 lines
1905 bytes
Andrue Cope [TeamB] wrote:
> I already have code in place to set up client/server links across our
> network and it works well. Unfortunately I now need to be able search
> for available servers so that I can get the user to pick one from a
> list.

If I understand correct you mean your serverapp's equipped with a TServerSocket ?

> My problem is that I have several hundred potential addresses to
> search. I can't go trying to establish a TClientSocket connection to
> every possible address because that would take hours. 

Well a little bit less I think. But anyhow.

You could provide every server with a UDP server.
Then add an UDP client to the app(s) that "search for available servers".
The UDP client does a broadcast upon which every UDP server that
is "in the air" sends its ip.

Hans.
Technical Details
Message-ID: <428a0694@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4289f9bf$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,122cee9b7cf53719
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 17 May 2005 16:55:23 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Searching for potential servers
References: <4289f9bf$1@newsgroups.borland.com>
In-Reply-To: <4289f9bf$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <428a0694@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116341908 129.125.201.248 (17 May 2005 07:58:28 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail