Article View: borland.public.cppbuilder.internet.socket
Article #5193Re: How to know who client is conected and writing???
From: Mark Jacobs
Date: Thu, 30 Sep 2004 09:10
Date: Thu, 30 Sep 2004 09:10
20 lines
1676 bytes
1676 bytes
For each connection to the server, you can get all sorts of info. For example,
you can show each remote IP address like this :-
for (int ii=0;ii<ServerSocket1->Socket->ActiveConnections;++ii)
ShowMessage(ServerSocket1->Socket->Connections[ii]->RemoteAddress);
HTH
--
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk
"Byanex" <chikui@bol.com.br> wrote in message
news:41596cbc$1@newsgroups.borland.com...
| One ServerSocket can conect with many ClientSocket, right???
| Think the "Server" is conected with "Client01" and "Client02",
| they are all "NonBlocking", and free to send any thing.
| The question is, how to know if the data come from "client01"
| or from "Client02".
Technical Details
Message-ID:
<415bcd86@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<41596cbc$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a69906b997c5d220 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup> Newsgroups: borland.public.cppbuilder.internet.socket References: <41596cbc$1@newsgroups.borland.com> Subject: Re: How to know who client is conected and writing??? Date: Thu, 30 Sep 2004 10:10:54 +0100 Lines: 22 Organization: DK Computing X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 81.144.157.8 Message-ID: <415bcd86@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1096535430 81.144.157.8 (30 Sep 2004 02:10:30 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail