TCP stream - Eof() - help!

Blitz3D Forums/Blitz3D Programming/TCP stream - Eof() - help!

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