🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: what's different between TTcpClient and TClientSocket in BCB6

#2919
From: Remy Lebeau (TeamB)
Date: Wed, 11 Jan 2006 09:00
19 lines
1695 bytes
"Liu Shan" <liushan@ps-electronic.com> wrote in message
news:43c4b30a$1@newsgroups.borland.com...

> How to use TServerSocket to bind different ports.

TServerSocket only supports 1 port at a time.

> I mean, I want to write a server app to support listening different
> ports. Do I need to drag and drop many TServerSocket on my
> form to bind different ports?

If you want multiple ports active at the same time, then yes.  On the other
hand, if you want only 1 port active at a time, but want to be able to
configure the port that is used, then simply change the value of the
TServerSocket's Port property when needed before activating the server.


Gambit
Technical Details
Message-ID: <43c4c8a2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43c1d889@newsgroups.borland.com> <43c23f01$1@newsgroups.borland.com> <43c4b30a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,25cf85f7ec6b3a7a
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: <43c1d889@newsgroups.borland.com> <43c23f01$1@newsgroups.borland.com> <43c4b30a$1@newsgroups.borland.com>
Subject: Re: what's different between TTcpClient and TClientSocket in BCB6
Date: Wed, 11 Jan 2006 01:00:34 -0800
Lines: 21
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: <43c4c8a2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1136969890 68.69.17.41 (11 Jan 2006 00:58:10 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail