I have an application where we transmit fields of data and we need to use network communications. I transmit about a dozen fields in a record, transmitting one record per second.
I have written some code that works- at least for a while. I transmit the code using a program compiled with PB/CC 5.0, and I have been receiving my sample code on another PC using the commercial software Hyperterminal.
The problem is that after some time, the Hyperterminal software locks-up. The Task Manager indicates that it is not responding.
If I shorten the transmitted record, i.e., fewer fields, then the time that it takes the Hyperterminal to lock-up increases. This sounds like some sort of buffering capacity problem. I attached a concise example of my code below that gives this problem below. I would appreciate any feedback and suggestions.
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
TCP OPEN PORT 23 AT "192.168.1.102" AS #2
DIM asciistring AS STRING
WHILE NOT INSTAT
asciistring="15,0,8.6544,.5,8.35,49.28,0,0,9.86,3,0,0,6.57,2"
TCP PRINT #2, asciistring$
SLEEP 1000
WEND
TCP CLOSE #2
END FUNCTION
I have written some code that works- at least for a while. I transmit the code using a program compiled with PB/CC 5.0, and I have been receiving my sample code on another PC using the commercial software Hyperterminal.
The problem is that after some time, the Hyperterminal software locks-up. The Task Manager indicates that it is not responding.
If I shorten the transmitted record, i.e., fewer fields, then the time that it takes the Hyperterminal to lock-up increases. This sounds like some sort of buffering capacity problem. I attached a concise example of my code below that gives this problem below. I would appreciate any feedback and suggestions.
#COMPILE EXE
#DIM ALL
FUNCTION PBMAIN () AS LONG
TCP OPEN PORT 23 AT "192.168.1.102" AS #2
DIM asciistring AS STRING
WHILE NOT INSTAT
asciistring="15,0,8.6544,.5,8.35,49.28,0,0,9.86,3,0,0,6.57,2"
TCP PRINT #2, asciistring$
SLEEP 1000
WEND
TCP CLOSE #2
END FUNCTION
Comment