| View previous topic :: View next topic |
| Author |
Message |
qyte Guest
|
Posted: Wed Jan 11, 2006 4:45 pm Post subject: Obtaining the SochetHandle from a TIdTCPConnection Component |
|
|
Is there a function that could retrieve the SocketHandle from an Indy
Client Component?
I mean the one used inside WSA... functions.
|
|
| Back to top |
|
 |
Don Guest
|
Posted: Wed Jan 11, 2006 5:51 pm Post subject: Re: Obtaining the SochetHandle from a TIdTCPConnection Compo |
|
|
| Quote: | 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...
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed Jan 11, 2006 7:08 pm Post subject: Re: Obtaining the SochetHandle from a TIdTCPConnection Compo |
|
|
"qyte" <gyte (AT) vivodinet (DOT) gr> wrote
| Quote: | 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
|
|
| Back to top |
|
 |
|