🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to create several TClient Socket?

#4294
From: John Borchers
Date: Thu, 03 Mar 2005 13:40
19 lines
1683 bytes
    I believe what you need to do is create a TComponentList of 
TClientSockets for as many connections as you want. Only the server has 
multiple threads, one for each connection. A client only has 1 thread for 
it's connection to the server.

John

"mehmed sipahi" <furkan.atli@mobinex.com.tr> wrote in message 
news:4225d24b@newsgroups.borland.com...
> Hi;
>
> My Client Program basicly connect a sever via TCp Socket..But I want to 
> establish several connection from same client to test to performance of 
> the server.(Not only one socket).Ex:when I Click to connect button on 
> client Program it must create 100 TClientSocket  and connect the server
>
> I know that I must use TClientSocket in a thread.but how?
>
> 
Technical Details
Message-ID: <422713e1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4225d24b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2e3106372668b753
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "John Borchers" <jborchers@notmail.com>
From: "John Borchers" <jborchers@notmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4225d24b@newsgroups.borland.com>
Subject: Re: How to create several TClient Socket?
Date: Thu, 3 Mar 2005 08:40:49 -0500
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 63.116.149.114
Message-ID: <422713e1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109857249 63.116.149.114 (3 Mar 2005 05:40:49 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail