🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages Started by qyte Wed, 11 Jan 2006 16:45
Obtaining the SochetHandle from a TIdTCPConnection Component?
#2923
Author: qyte
Date: Wed, 11 Jan 2006 16:45
4 lines
1087 bytes
Is there a function that could retrieve the SocketHandle from an Indy 
Client Component?

I mean the one used inside WSA... functions.
Re: Obtaining the SochetHandle from a TIdTCPConnection Component?
#2924
Author: 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...
Re: Obtaining the SochetHandle from a TIdTCPConnection Component?
#2925
Author: Remy Lebeau (TeamB)
Date: Wed, 11 Jan 2006 19:08
13 lines
1248 bytes
"qyte" <gyte@vivodinet.gr> wrote in message
news:43c5359f$1@newsgroups.borland.com...

> Is there a function that could retrieve the SocketHandle
> from an Indy Client Component?

Not a function, but a property:

    IdTCPClient->Socket->Binding->Handle


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads