06-25-2011, 01:14 PM
I have this so far:
It hangs at the first "Send" and I'm unsure how to figure out why.
- Derek
out
#compile "__TcpIpClient"
TcpIpClient x
str server="localhost"
str getfile=""
str receivedData
str cookie
str token
str digest
out "---- connecting ----"
if(!x.Connect(server 1024)) out "failed"
out "---- validating ----"
if(!x.Send("quintessence\n\r")) out "failed"
if(!x.Receive(cookie 128)) out "failed"
out cookie
digest.encrypt(2|8 cookie)
out digest
digest.from(digest "\n")
out digest
if(!x.Send(digest)) out "failed"
out "---- sending request ----"
str request.format("Vol Up %s" getfile)
out "---- receiving ----"
if(!x.Receive(receivedData)) end "failed"
out "---- received: ----"
out receivedDataIt hangs at the first "Send" and I'm unsure how to figure out why.
- Derek
