| View previous topic :: View next topic |
| Author |
Message |
Carlos Matos Guest
|
Posted: Thu Mar 17, 2005 6:51 pm Post subject: TIdTCPClient |
|
|
On Indy 9 TIdTCPClient has a property that gives us the name (not IP) of the
client machine.
I can't find this property with in Indy 10. It has been removed or mooved?
Thanks,
Carlos
|
|
| Back to top |
|
 |
DonS Guest
|
Posted: Thu Mar 17, 2005 7:00 pm Post subject: Re: TIdTCPClient |
|
|
| Quote: | On Indy 9 TIdTCPClient has a property that gives us the name (not IP) of the
client machine.
I can't find this property with in Indy 10. It has been removed or mooved?
|
TIdComponent.LocalName in Indy 9. Removed in Indy 10.
Just use the TComponent.Name property, or the GStack.HostName property if you need the local host name. Protocol clients that require an identity implement a Username property.
hth...
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu Mar 17, 2005 8:01 pm Post subject: Re: TIdTCPClient |
|
|
"DonS" <mudshark (AT) rancidbud (DOT) com> wrote
| Quote: | Just use the TComponent.Name property
|
That will not tell the machine's name.
| Quote: | or the GStack.HostName property if you need the local host name.
|
That is the way to go.
Gambit
|
|
| Back to top |
|
 |
Carlos Matos Guest
|
Posted: Fri Mar 18, 2005 10:42 am Post subject: Re: TIdTCPClient |
|
|
| Quote: | or the GStack.HostName property if you need the local host name.
That is the way to go.
|
Yes, that's it.
Thanks to both.
Carlos
|
|
| Back to top |
|
 |
|