if not readavail(tcpstream) ... then the server has finished to send packages .. this is not the end of a single line, there could be more lines in one package
if eof(tcpstream) ... the server has closed the connection
example:
while readavail(tcpstream)
line$ = line$ + readline(tcpstream)
if eof(tcpstream) return line$
wend
if eof(tcpstream) ... the server has closed the connection
example:
while readavail(tcpstream)
line$ = line$ + readline(tcpstream)
if eof(tcpstream) return line$
wend