Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Jun : Re: IdTCPServer
| Subject: | Re: IdTCPServer |
| Posted by: | "brandon" (someo..@microsoft.com) |
| Date: | Thu, 15 Jun 2006 11:06:24 |
Thanks for the guidence, I now have a better understanding of how these two
components work. I also have a much better understanding of threads and
their use.
I have another question though, in using
TMyPeerThread = class(TIdPeerThread)
private
WriteLock: TCriticalSection;
public
Username: String;
// other values as desired...
constructor Create(ACreateSuspended: Boolean = True); override;
destructor Destroy; override;
procedure SendToUser(const AUser, AMsg: String);
procedure SendFrom(const AUser, AMsg: String);
// other methods as desired...
end;
Is there a way to hang and object (other than string) off of this object to
exchange some additional data. I'm thinking more of a predefined TObject
that may have items like TClientDataSet or other components. 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.
Has anyone ever done this or is this a really bad idea?