Thanks, I'll fiddle around with it some more. :D
E:
Hmm so how does this work? I'm using
c := CreateSocket();
ConnectSocket(c, '209.85.135.147', '80'); // Connect to google
SetTimeout(c, 5000);
SendSocket(c, 'HEAD / HTTP/1.1');
Wait(2000);
Writeln(RecvSocket(c));
FreeSocket(c);
But it always times out. I want it to check wether or not the data has come in yet or not, if it has, handle it and send the next page request, if it has not, continue checking other sockets. Just for efficiently checking GE prices for my merchanting tool.
I've also been trying to use the Listen, Accept combo but it doesn't work either. Been using
http://beej.us/guide/bgnet/output/html/multipage/syscalls.html just to get an idea in what order I should use them, but so far no good. I just don't know what I'm doing.
Can anyone point me into the right direction again please? :$