Hi all,
I am interfacing two Tcl apps. The server app opens a socket. I can send commands to it and get responses. The responses are multi-line. My client receive socket handler only gets the response line by line (no matter how many different fconfigure combinations I try.)
What I'd like to happen is for me to get the entire response in one shot. I tried "read" instead of "gets" in the receive handler and it got locked up.
Any direction would be greatly appreciated. TIA.
(I have hunted for an answer and experimented for over a day. I can't find a solution. I bet this is child play for a seasoned Tcl person.)
-Brad
I am interfacing two Tcl apps. The server app opens a socket. I can send commands to it and get responses. The responses are multi-line. My client receive socket handler only gets the response line by line (no matter how many different fconfigure combinations I try.)
What I'd like to happen is for me to get the entire response in one shot. I tried "read" instead of "gets" in the receive handler and it got locked up.
Any direction would be greatly appreciated. TIA.
(I have hunted for an answer and experimented for over a day. I can't find a solution. I bet this is child play for a seasoned Tcl person.)
-Brad