Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Re: How To Get The TIdPeerThread.Connection.FWriteBuffer?

www.cryer.info
Managed Newsgroup Archive

Re: How To Get The TIdPeerThread.Connection.FWriteBuffer?

Subject:Re: How To Get The TIdPeerThread.Connection.FWriteBuffer?
Posted by:"York" (offi..@onlinebg.info)
Date:Wed, 27 Sep 2006 05:14:37

This is blocking. This approach also is not quite convenient because the
last in the list will always be the last to get its data though it can be
the fastest connection. For "time-critical" operations this is not good.

I'd suggest using a "writer thread" for each connection on the server and a
queue for each thread or one single queue for all of them - it depends on
your data and what you want to accomplish.

Regards


"zxp" <zxp@hundure.net> wrote in message
news:4519dc74@newsgroups.borland.com...
> Deal All:
>   TCP  Server use a timer Call threads.LocakList to get all Threads. and
> Send Data to All threads. But if some Client not to recv data, will hold
> the server apllication when call TidpeerThread.connection.writebuffer
> procedure. how to resolve this problem? To
> ClearWriteBuffer?Flushwirtebuffer?
>
> Thanks!
> zxp.

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive