Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Encrypted command from server for TIdCmdTCPClient

www.cryer.info
Managed Newsgroup Archive

Encrypted command from server for TIdCmdTCPClient

Subject:Encrypted command from server for TIdCmdTCPClient
Posted by:"Moore" (moo..@hotmail.com)
Date:14 Feb 2008 00:13:56

I have a TIdCmdTCPClient receiving commands from a TCP server,
the server sends commands containing the command and a string with additional information, the command (command+string) is encrypted,
eg the server may send [DEVDEL0123] encrypted ([D021FF6586]), this is just an example, DEVDEL is the command and 0123 is the number of the card that was removed,
the client must first parse the string to retrieve the command (DEVDEL) and the string (0123) and then proceed to update the user interface.
How to make this with TIdCmdTCPClient? define a command named DEVDEL and make the adecuate parsing and retrieving in the OnBeforeCommand event?
waht if the command is not DEVDEL, it is DEVADD for example?
thnx a lot for your help..

Replies:

www.cryer.info
Managed Newsgroup Archive