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: | "Moore" (moo..@hotmail.com) |
| Date: | 17 Feb 2008 23:30:36 |
Thnx for both, it has sserved me :)
"Jamie Dale" <jamie.dale@yahoo.com> wrote:
>Heh, now thats something I didn't know!
>
>Nice one Remy!
>
>JD
>
>"Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
>news:47b497ef$1@newsgroups.borland.com...
>>
>> "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
none