Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Feb : Re: Encrypted command from server for TIdCmdTCPClient
| Subject: | Re: Encrypted command from server for TIdCmdTCPClient |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Thu, 14 Feb 2008 11:35:49 |
"Jamie Dale" <jamie.dale@yahoo.com> wrote in message
news:47b44a8f@newsgroups.borland.com...
> Also, you need to ensure you have a delimiter character in the string.
No, you don't.
> you are sending DEVDEL0123 where DEVDEL is the command.
TIdCommandHandler supports that syntax. Set the CmdDelimiter property to #0
(it is #32 by default) to allow the beginning of a command to be checked
based on length alone (6 in this case) without checking for any separator.
> The CommandHandlers will only process the command DEVDEL if it
> matches what it is looking for - In other words, it will not recognise
> DEVDEL0123 if you have a commandhandler setup as 'DEVDEL'.
Yes, it will if you have the TIdCommandHandler's Command property set to
'DEVDEL' and its CmdDelimiter property set to #0.
> You need to use a delimiter character
No, you don't.
Gambit