🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12237

Sockets

#12237
From: Charles Page
Date: Wed, 17 Dec 2003 02:23
20 lines
1994 bytes
hello,
Lets say that there is a client which can connect to a server via port 
4100.  Is there some way for the client to broadcast a message over the 
network saying, i am looking for a server on any ip address that 
responds properly to a packet sent to 4100?  This way the client can 
simply come up on the network without a priori knowledge of what the 
server's ip/name is.  (This would only apply to a network on one side of 
a router.)

i can see where one can simply send a packet to every ip address in the 
networks sub mask[for(;;)].  but i am wondering if there is another way 
that would generate less traffic/use less computer resources.  (as we 
have hundreds of laptops connecting to our network daily, and a mask of 
255.255.0.0, but really only usually use 10.1.1.x or 10.1.2.x so 
everything from 10.1.3.x-10.1.255.x usually would be wasted.  however, 
there are no where near 255^2 network jacks/wireless connections to our 
network)

thanks,
charlie
Technical Details
Message-ID: <3fdfbe34@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,558284f16a287bb3,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-16 18:39:50 PST
Date: Tue, 16 Dec 2003 21:23:54 -0500
From: Charles Page <lissom@snet.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Sockets
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.252.97.113
Message-ID: <3fdfbe34@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071627828 64.252.97.113 (16 Dec 2003 18:23:48 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer01.lnd.ops.eu.uu.net!lnewsinpeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail