Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: How to check TIdPeerThread.Connection for input characters?
| Subject: | Re: How to check TIdPeerThread.Connection for input characters? |
| Posted by: | "Mark" (mkhuebn..@gmail.com) |
| Date: | 15 Mar 2007 06:49:33 |
> > I don't want to execute a TIdPeerThread.Connection.ReadChar
> > unless there are characters left in the input buffer to be read.
>
> Why not?
> Gambit
Because I want to close the connection if I'm done reading a message.
The IdTCPServer will then, I assume, make a new connection when
another message arrives. Isn't this better than keeping a connection
open all the time even when no data is being transferred?