Pipe "problem"
Posted: Wed Oct 04, 2017 3:35 pm
Hi, I've created two basic programs that exchange data over the network.
one sends text strings, the other receives and writes them to the screen
The program that send send is as follows:
10 CLS
20 OPEN # 3, N1_PIPE_TEST
30 REPeat CR_LOOP
40 INPUT "TEXT:"; A $
50 PRINT # 3, A $ & CHR $ (10)
60 END REPeat CR_LOOP
the one who is receiving and printing
100 CLS
110:
120 OPEN_IN # 3, PIPE_TEST
130:
140 REPeat CR_LOOP
150 INPUT # 3, A $
160 PRINT A $
170 END REPeat CR_LOOP
Obviously, the file server was launched on the latter (by saying FSERVE)
It works perfectly well, the only strangeness (and that's why I'm writing to you) is that a "delay" of a string in receiving data.
Let me explain with an example
- I write "HI"
. I receive nothing
- I write "HOW ARE YOU?"
. I receive "HI"
- I write "ALL GOOD?"
. I receive "HOW ARE YOU?"
..and so on..
What I do not understand is whether I'm wrong or it works just like that
Giorgio
one sends text strings, the other receives and writes them to the screen
The program that send send is as follows:
10 CLS
20 OPEN # 3, N1_PIPE_TEST
30 REPeat CR_LOOP
40 INPUT "TEXT:"; A $
50 PRINT # 3, A $ & CHR $ (10)
60 END REPeat CR_LOOP
the one who is receiving and printing
100 CLS
110:
120 OPEN_IN # 3, PIPE_TEST
130:
140 REPeat CR_LOOP
150 INPUT # 3, A $
160 PRINT A $
170 END REPeat CR_LOOP
Obviously, the file server was launched on the latter (by saying FSERVE)
It works perfectly well, the only strangeness (and that's why I'm writing to you) is that a "delay" of a string in receiving data.
Let me explain with an example
- I write "HI"
. I receive nothing
- I write "HOW ARE YOU?"
. I receive "HI"
- I write "ALL GOOD?"
. I receive "HOW ARE YOU?"
..and so on..
What I do not understand is whether I'm wrong or it works just like that
Giorgio