🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Create Several TClientSocket C++ Builder

#4285
From: Hans Galema
Date: Wed, 02 Mar 2005 17:34
23 lines
1589 bytes
mehmed sipahi wrote:

> My app. basicly connect a server via a TCP Socket.
> I want to test the server performance so i am coding a test client..
> 
> How can I create several TClientSocket and connect the server on one 
> client??I Know I must use thread  but how?

What problems do you have exactly ? How do you create one TClientSocket
now then ? Why do you need threads ?

But: You better make -and faster- another app that starts your client a 100 times.

   int clientnr = -1;
   while ( ++clientnr < 100 )
	{
	ShellExecute ( ... your client ... );

	}

That would be all!

Hans.
Technical Details
Message-ID: <4225f97d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4225d0f1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,dd6db4c120873d11
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 02 Mar 2005 18:34:15 +0100
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: Create Several TClientSocket C++ Builder
References: <4225d0f1@newsgroups.borland.com>
In-Reply-To: <4225d0f1@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: <4225f97d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1109784957 129.125.201.248 (2 Mar 2005 09:35:57 -0800)
Lines: 23
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail