Article View: borland.public.cppbuilder.internet.socket
Article #4212Re: server socket
From: loukiachr
Date: Sun, 20 Mar 2005 11:08
Date: Sun, 20 Mar 2005 11:08
33 lines
2188 bytes
2188 bytes
what is an av?what u mean to report that? how can i know the max connections currently? "Hans Galema" <notused@notused.nl> wrote in message news:423b52af$1@newsgroups.borland.com... > loukiachr wrote: >> are you suremhave you tried it,when 2 clients connect the first might >> download the file the second just waits > > Don�t blame the clients. That is because the server first sends > a file to one and then to the other. > > You said you had an AV. That is solved now I think ? Why > don�t you report that ? > > Wel as long as code is executed in OnClientConnect then a next > OnClientConnect will not come. So indeed only one client > is served at a time. > > If you want to server more clients at the same time > then you have to change your code. > > Do not send the whole file in one piece to begin with. > > What I do with a file sending server is using a TTimer. > In the TTimer event there is a loop that goes through > the Connections[] array and sends every client for instance > 8KB. For every Connection[] you have to keep > track of the file to be send and the position where > you were with sending. > > Hans. > >
Technical Details
Message-ID:
<423d59c5@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<423963b8$2@newsgroups.borland.com> <423aa74f$1@newsgroups.borland.com> <423aafb1$1@newsgroups.borland.com> <423ac662@newsgroups.borland.com> <423b52af$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b5f37cb24ca8c183 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII Reply-To: "loukiachr" <loukiachr@hotmail.com> From: "loukiachr" <loukiachr@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <423963b8$2@newsgroups.borland.com> <423aa74f$1@newsgroups.borland.com> <423aafb1$1@newsgroups.borland.com> <423ac662@newsgroups.borland.com> <423b52af$1@newsgroups.borland.com> Subject: Re: server socket Date: Sun, 20 Mar 2005 13:08:53 +0200 Lines: 35 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 195.130.67.105 Message-ID: <423d59c5@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111316933 195.130.67.105 (20 Mar 2005 03:08:53 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail