Repeat writeline

BlitzPlus Forums/BlitzPlus Programming/Repeat writeline

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I need my program to constantly be talking to the server and can do this by placing "writeline" within my repeat section of the program. It is possible to get this working by having opentcpstream and closetcpstream on either side of the writeline, but this causes my program to respond very slowly. Is there a way to send muliple requests for a file to a server and just opening the tcpstream once. So for example

opentcpstream("server.com",80)
Repeat
WriteLine usercheckserver,"GET file HTTP/1.0"
WriteLine usercheckserver,"Host: server.com"
WriteLine usercheckserver,Chr$(10)
Forever

Except that doesn't work because once i've sent those lines i can't send a new request for a file. How to get round this?
Thanks/