Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Fran�ois BARDIN" <bardin@skyware.worldnet.fr>
Subject: Passing a buffer with an IFS without truncating ...
Date: 1997/08/19	[thread overview]
Message-ID: <01bcac80$92c051c0$0f1103c3@judge> (raw)


Could somobody help me ?!!!!
I have big troubles with IFS, and I can't get it.
IFS are the Internal Fields Separators, that are <space>, <tab.>, and <CR>
for the POSIX-tively correct Unix shells.
But my probems do not come from command-lines shell, but from the buffers
that I'm trying to manipulate through the different stream classes under
DEC/C++.
For example :
-I've created my QueueInterfaceClass which allows me to make different
processes communicate. But when I send a message ( which is in char *
buffer ) which contains an IFS, all the characters behind the IFS one are
blasted.

        i.e.:
        - If I send : "The cat is in the maze";
        - I will receive :"The"

        - If I send "bloubloum  cat"
        - I will receive :"bloumbloum"

-I've created an Serial_Line_InterfaceClass to communicate with a P.C. with
a RS232 chip. From the P.C. to my AlphaStation, the messages are not
truncated, even if they contain an IFS character. But if there is one in a
message from the station to the P.C., it is skipped with all the afterward
characters.

        i.e:
        - Same examples that with the QueueInterfaceClass.

        And this, even if I send characters one by one on the serial_line
!!!
        And yet, I use only asynchronous buffers in my stream classes !!!

Well, this is in fact a problem on which I've spent hours and hours, trying
many iostreams class configurations, without resolving just once the
problem.

And as the just-passed week-end has tired me a lot ( seems that me and my
friends are the alive prooves that Paris is not a undeads-museum !!!), it's
very hard to purchase the problem with a dbx debugger.
So, if you have any suggestion, it will be welcomed.

thanks a lot for finding time to answer me,
sorry for my english ( but still try'ing to improve it.)




                 reply	other threads:[~1997-08-19  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox