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/
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/