🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Getting Host:Port Pair for connection using TIdTCPServer

#848
From: Oleg Tiktinski
Date: Thu, 02 Aug 2007 21:18
25 lines
1704 bytes
Ah !

Thanks alot!!!

Remy Lebeau (TeamB) wrote:
> "Oleg Tiktinski" <oleg@sequoiars.com> wrote in message
> news:46b22942$1@newsgroups.borland.com...
> 
>> What I am doing wrong ?
> 
> You are accessing the wrong properties.  You need to access the PeerIP and
> PeerPort properties of the IOHandler's Binding instead, ie:
> 
>     void __fastcall TPaymentService::tcp_server_serverConnect(TIdContext
> *AContext)
>     {
>         event_log("port " +
> IntToStr(AContext->Connection->Socket->Binding->PeerPort));
>         event_log("host " + AContext->Connection->Socket->Binding->PeerIP);
>     }
> 
> 
> Gambit
> 
> 
Technical Details
Message-ID: <46b24a37$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46b22942$1@newsgroups.borland.com> <46b2438f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b20c26fe57e8a41f
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 02 Aug 2007 14:18:53 -0700
From: Oleg Tiktinski <oleg@sequoiars.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Getting Host:Port Pair for connection using TIdTCPServer
References: <46b22942$1@newsgroups.borland.com> <46b2438f$1@newsgroups.borland.com>
In-Reply-To: <46b2438f$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.4.183.142
Message-ID: <46b24a37$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1186089527 69.4.183.142 (2 Aug 2007 14:18:47 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail