🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Obtaining the SochetHandle from a TIdTCPConnection Component?

#2924
From: Don
Date: Wed, 11 Jan 2006 17:51
11 lines
1275 bytes
> Is there a function that could retrieve the SocketHandle from an Indy 
> Client Component?
> I mean the one used inside WSA... functions.

The handle you're looking for is a property in the TIdSocketHandle class: 
TIdSocketHandle->Handle.

It is exposed in TIdTCPConnection descendants using the Socket property: 
TIdTCPConnection->Socket->Binding->Handle.

hth...
Technical Details
Message-ID: <43c54585@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <43c5359f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,31b54607275fb483
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Don" <blacknapkin@twistandfruge.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43c5359f$1@newsgroups.borland.com>
Subject: Re: Obtaining the SochetHandle from a TIdTCPConnection Component?
Date: Wed, 11 Jan 2006 12:51:20 -0500
Lines: 13
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; Response
NNTP-Posting-Host: 71.9.158.33
Message-ID: <43c54585@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1137001861 71.9.158.33 (11 Jan 2006 09:51:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail