Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event

www.cryer.info
Managed Newsgroup Archive

Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event

Subject:Re: Delphi 7 & Indy 10 TidCmdTCPServer OnCommand Event
Posted by:"Codeman II" (thegentlem..@webmail.co.za)
Date:Thu, 12 Apr 2007 23:31:11

Ok, thanks.

I just want to confirm and make 100% sure about the following:

1. Should I rather have a client connect to the server with the relevant
command and leave the connection open until the client
    software are closed OR
    must the client rather connect to server each time it wants to send a
command in immediately afterwards disconnect (close connection)?
    I am not sure which is better. Still new to TCP.

2. The code snippet I was refering to, it only checks for open / active
connections?
    But if I disconnect / close the connection, for example with my "Quit"
commandhandler, the server component won't have it in it's list anymore?
    True?

2a. And if true then I need to use your last suggestion.


Thanks again!

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive