Article View: borland.public.cppbuilder.internet.socket
Article #5695Re: TServerSocket problems
From: Hans Galema
Date: Fri, 09 Jul 2004 15:10
Date: Fri, 09 Jul 2004 15:10
23 lines
1715 bytes
1715 bytes
Michele Santucci wrote: > 1) I would like to know how to know/set the address on wich the > TServerSocket listen since TServerSocket->Socket->LocalAddress is always > "0.0.0.0" and is read only. No, not always. As soon a a client connects it will contain an IP-address. > 2) I would like also to know how to track the IP address of a connected > client. Socket->RemoteAddress; in the Socket parameter of all events. > 3) Last but not least ... is it possible to stop listening after the first > connection? I mean if I set the Active property to false the server stops > EVERY activity included each connected clients (I would like to know how to > stop listening WITHOUT closing the ongoing connections). To my knowledge: not possible. Hans.
Technical Details
Message-ID:
<40eeb51f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40eeb440$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,133ba4102b593f76 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 09 Jul 2004 17:10:48 +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 problems References: <40eeb440$1@newsgroups.borland.com> In-Reply-To: <40eeb440$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: <40eeb51f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1089385759 129.125.201.248 (9 Jul 2004 08:09:19 -0700) Lines: 23 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail