Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: IdTCPServer
| Subject: | Re: IdTCPServer |
| Posted by: | "brandon" (someo..@microsoft.com) |
| Date: | Fri, 16 Jun 2006 13:42:33 |
To clarify, the server has a TMyPeerThread(AThread).Data property.
Can the client set or read the .Data Property or is it only set / read from
the server?
Example:
If TMyPeerThread(AThread).Data is a TClientDataSet, can I access the data
from TClientDataSet(TIdTCPClient.???).FieldByName(.....
I am not interested in one client being able to see all other client
objects, only the object on the thread that belongs to me / my Thread.
"brandon" <someone@microsoft.com> wrote in message
news:4492b857@newsgroups.borland.com...
> Thanks Remy, I see the data property on the server. How do I access this
> data property on the client?
>
>
> "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
> news:4491b14b$3@newsgroups.borland.com...
>>
>> "brandon" <someone@microsoft.com> wrote in message
>> news:449177c1$1@newsgroups.borland.com...
>>
>>> Is there a way to hang and object (other than string) off of
>>> this object to exchange some additional data.
>>
>> TIdPeerThread has a public Data property that can be used for that. Or
>> just
>> define your own property.
>>
>>> I am only guessing that it will need to be a TPersistent that has
>>> streaming options but am unsure if it can (or should) be done.
>>
>> That does not matter at all, since this is strictly runtime-only code.
>> There is no DFM streaming involved.
>>
>>
>> Gambit