🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerSocket v/s Indy

#5297
From: JD
Date: Sun, 19 Sep 2004 15:31
18 lines
1589 bytes
Hans Galema <dontusethis@dontusethis.nl> wrote:
>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.

Simple enough. Thank you.

~ JD
Technical Details
Message-ID: <414da645$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
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> <414ade84@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
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: TServerSocket v/s Indy
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 172.135.54.80     
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> <414ade84@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <414da645$1@newsgroups.borland.com>
Date: 19 Sep 2004 08:31:17 -0700
X-Trace: newsgroups.borland.com 1095607877 207.105.83.66 (19 Sep 2004 08:31:17 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newscore.univie.ac.at!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail