Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : Re: How To Get The TIdPeerThread.Connection.FWriteBuffer?
| Subject: | Re: How To Get The TIdPeerThread.Connection.FWriteBuffer? |
| Posted by: | "zxp" (z..@hundure.net) |
| Date: | Wed, 27 Sep 2006 13:39:26 |
Dear York:
Thank you very much!
Now I use thread to call writebuffer. It's run normal now!
:)
zxp
"York" <office@onlinebg.info> 写入消息新闻:4519de8a$1@newsgroups.borland.com...
> 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.
none