BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How To Get The TIdPeerThread.Connection.FWriteBuffer?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
zxp
Guest





PostPosted: Wed Sep 27, 2006 7:05 am    Post subject: How To Get The TIdPeerThread.Connection.FWriteBuffer? Reply with quote



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.
Back to top
York
Guest





PostPosted: Wed Sep 27, 2006 7:14 am    Post subject: Re: How To Get The TIdPeerThread.Connection.FWriteBuffer? Reply with quote



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 (AT) hundure (DOT) net> wrote in message
news:4519dc74 (AT) newsgroups (DOT) borland.com...
Quote:
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.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.