🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3121

Indy CommandHandler (CR+LF) Issue

#3121
From: Darlington ADIBE
Date: Wed, 23 Nov 2005 14:01
30 lines
2138 bytes
Hello All,

With help from the group (Remy and others) I have successfully installed
indy 9017 on BCB6 Enterprise, which I must have made my codeing more easy
until now.

I used the commandhandler of the IdTCPSerever to handle cmd from the client,
I used the '#' sysbol as both my command delimiter and Parameter delimiter
it all worked great for the modules I have done so far until I got to this
module. The Client send a cmd.sprintf ("SENDTO#'%s'#'%s'#, Memo1->Text,
LabeledEdit1->Text) to the server.

The CommandHandler for SENDTO was trigered ok. but the unparsedParams value
(am not parsing param) contain only the first line from the memo1-text,
after the commadhandler have removed the "SENDTO#".

My observation is that the Commandhandler stoped reading after CR or CR+LF,.

So how do I pass a parameter to the commandhandler if the parameter is the
text value of controls like Memo controlls that insert CR and or CR+LF as
you type if WordWrap is set to true (which in my vase have to be).

Do I have controll over what is considered the ATerminator for the
commandhandler, like when I use ReadLn, or how do I control the
commandhabdler Line Terminator char. (I believe that the commandhandler uses
the ReadLn to read from the Thread).

Thanx.

Darl.
Technical Details
Message-ID: <43847621@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cb4e95bbbefbce66,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Darlington ADIBE" <bcb@triative.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Indy CommandHandler (CR+LF) Issue
Date: Wed, 23 Nov 2005 15:01:47 +0100
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
NNTP-Posting-Host: 83.229.68.10
Message-ID: <43847621@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1132754465 83.229.68.10 (23 Nov 2005 06:01:05 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail