🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sockets

#12238
From: Remy Lebeau (TeamB)
Date: Wed, 17 Dec 2003 04:00
19 lines
1757 bytes
"Charles Page" <lissom@snet.net> wrote in message
news:3fdfbe34@newsgroups.borland.com...

> 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?

Short of running through every possble IP on the network attempting to make
actual connections, what you ask for is typically done using UDP.  You would
have the server open a UDP server socket on a given port.  The client can
then do a UDP subnet broadcast using that port.  Any server that receives
and processes the packet can decide if it can accept TCP connections on the
other port (4100, in this case) and send a response UDP packet back to the
client letting it know that the server is there and ready.


Gambit
Technical Details
Message-ID: <3fdfd3af$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fdfbe34@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,558284f16a287bb3
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-16 20:09:43 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fdfbe34@newsgroups.borland.com>
Subject: Re: Sockets
Date: Tue, 16 Dec 2003 20:00:13 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.139.199
Message-ID: <3fdfd3af$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1071633327 67.22.139.199 (16 Dec 2003 19:55:27 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail