Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Do TIdTCPClient connects and disconnects cause heavy CPU/Network load?
| Subject: | Re: Do TIdTCPClient connects and disconnects cause heavy CPU/Network load? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 10 May 2006 10:18:56 |
"PeaShooter_OMO" <jacquesvdm@homemail.co.za> wrote in message
news:4461c706@newsgroups.borland.com...
> Can I TIdTCPClient.Connect, WriteLn, Disconnect every time I
> want the client to send data to the TIdTCPServer.
You can. But why would you want to do it that way? If you send data often,
it is more efficient to keep the connection open.
> Does it cause heavy load on the CPU or Network
No.
> is it the preferred way?
Not generally, no.
Gambit