The ouput goes to port 4200. That works with Caché. (see test code)
Attention: The ! at the end of the WRITE is important as it triggers the send.
in SAMPLES it is at the beginning: So you just get an empty line. and rest remains in buffer.
You may also add WRITE !! before the CLOSE to flush the buffer and send an empty line for termination .
I have no knowledge on Python or PythonConsole but from your code I see no indication
where it starts listening at port 4200. pls. check.
Test code from Caché Terminal:
USER>open tcp:(:4200):1 write $s($t:"OK",1:"failed"),!
OK
USER>for line=1:1 use tcp read text use 0 write line,?5,text,!
1 Name: Uhles,Rob O.
<READ>
[ <READ> is the reaction to the connection CLOSE of the sender as I don't check termination ]
- Log in to post comments