Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : Re: INDY TIdTCPClient and TIdTCPServer Usage

www.cryer.info
Managed Newsgroup Archive

Re: INDY TIdTCPClient and TIdTCPServer Usage

Subject:Re: INDY TIdTCPClient and TIdTCPServer Usage
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Tue, 21 Mar 2006 12:34:04

"Dennis" <marianndkc@home3.gvdnet.dk> wrote in message
news:44205f11$1@newsgroups.borland.com...

> I have the same problem as in my original post.
>
> "The client raises an exception "Reply code is not valid: OK".

As I already told you earlier, you CANNOT use string-based response codes
when working with TIdTCPClient directly.  You must use numeric values
instead.

If you need to use string-based response codes, then you must derive a new
class from TIdTCPClient and override the virtual GetReplyClass() method to
specify a TIdReply-derived class that allows string-based response codes.
TIdTCPClient uses TIdReplyRFC by default, which is numeric-based, not
string-based.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive