Article View: borland.public.cppbuilder.internet.socket
Article #3879How to know the number of the connection in using serversocket?
From: Didier
Date: Thu, 12 May 2005 19:50
Date: Thu, 12 May 2005 19:50
12 lines
1694 bytes
1694 bytes
Hello; I 'm using a serversocket to make dialog beetween one pc and many machines; these machines are connecting to my pc via the serversocket Object ; so I 'm getting the informations transmitted by the method OClientRead (Socket.ReceiveBuf etc...); Now I 'd like to send an ack to the machine ;so I want to use Socket->Connections[x]->SendText etc.. The problem is that I don't know hot to get the value x ! I 've tried with a fix value (0) and it's ok when I have only one machine connected ; but whe there are many machines there are many connections so I have to know the number of the connection I have to tell that i 'm usin a nonblocking Servertype
Technical Details
Message-ID:
<4283b3c9@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ceea40ef2e922ed2,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Didier" <bodinier.didier@wanadoo.fr> Newsgroups: borland.public.cppbuilder.internet.socket Subject: How to know the number of the connection in using serversocket? Date: Thu, 12 May 2005 21:50:38 +0200 Lines: 14 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; Original NNTP-Posting-Host: 80.13.200.20 Message-ID: <4283b3c9@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115927497 80.13.200.20 (12 May 2005 12:51:37 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail