Help with Sockets - 18/04/15 03:29 PM
Hey, I am new to sockets and I have been trying to read up on them but its very confusing. I used a tutorial and ended up with this code, but it does not work. Appreciate the help!
Code:
on *:SOCKOPEN:inv:{ sockwrite -n $sockname GET /api/invasions sockwrite $sockname $crlf } on *:SOCKREAD:http: { if ($sockerr > 0) { sockread -f %temp if (%temp) { var -g %data = %temp } return } } alias z { sockopen inv www.toontownrewritten.com 80 echo -c notify %data sockclose inv }