* Passing a buffer with an IFS without truncating ...
@ 1997-08-19 4:00 Fran�ois BARDIN
0 siblings, 0 replies; only message in thread
From: Fran�ois BARDIN @ 1997-08-19 4:00 UTC (permalink / 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.)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-08-19 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-19 4:00 Passing a buffer with an IFS without truncating Fran�ois BARDIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox