Article View: borland.public.cppbuilder.internet.socket
Article #5285Re: TServerSocket v/s Indy
From: Hans Galema
Date: Fri, 17 Sep 2004 12:57
Date: Fri, 17 Sep 2004 12:57
14 lines
1646 bytes
1646 bytes
JD wrote: > Ok but I'm confused about how to know which client is which. > IOW, how do I know which client is sending/has sent a message? If the server receives a message from a client and you use a non- blocking TServerSocket then that client is the Socket parameter of the OnClientRead event. If you then want to send a message to the other clients iterate througt the Connections[] array and do not send to the one where Connections[] == Socket. Hans.
Technical Details
Message-ID:
<414ade84@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41415d94$1@newsgroups.borland.com> <4141743f$1@newsgroups.borland.com> <4149ac08$1@newsgroups.borland.com> <4149b0c8$1@newsgroups.borland.com> <4149bee8$1@newsgroups.borland.com> <414a9620$1@newsgroups.borland.com> <414ad1da$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a7601bf51960fa65 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 17 Sep 2004 14:57:31 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TServerSocket v/s Indy References: <41415d94$1@newsgroups.borland.com> <4141743f$1@newsgroups.borland.com> <4149ac08$1@newsgroups.borland.com> <4149b0c8$1@newsgroups.borland.com> <4149bee8$1@newsgroups.borland.com> <414a9620$1@newsgroups.borland.com> <414ad1da$1@newsgroups.borland.com> In-Reply-To: <414ad1da$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.201.248 Message-ID: <414ade84@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1095425668 129.125.201.248 (17 Sep 2004 05:54:28 -0700) Lines: 14 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail