• Welcome to Valhalla Legends Archive.
 

PHP: Ways to read from a socket?

Started by Joe[x86], December 14, 2005, 11:26 PM

Previous topic - Next topic

Joe[x86]

I'm creating a Battle.net binary bot (UJZP), and I'm trying to figure out how to go about receiving data from the socket. I don't want to put the entire thing into an infinite loop (unless I can fork that loop, and continue to do other stuff), but I don't know how to use timers either.

Does anyone know how I'd go about doing this?
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Warrior

Well the recieve is blocking so just whenever you expect to get data back call the recv function socket_read (iirc) and wait for it to return then parse whatever data is returned in the function.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?