My bot works so far, but times out when receiving 0x29 from Battle.Net. I tried upping the timeout delay, but that just gave this error:
QuoteWarning: socket_read() unable to read from socket - : An existing connection was forcibly closed by the remote host. in d:\program files\apache group\apache\htdocs\bnls\bns_bncs_class.php on line 285
Stupid PHP sockets -.-
Anyone have any ideas on how I might be able to solve this?
That sounds a bit like an ip ban...
In every other language I've made a connection to Battle.Net it, it would refuse to connect when I got IP banned. In my PHP script I can connect and disconnect, but it times out on 0x29, which is packet #3 in the logon sequence.
maybe you're sending a bad packet and it's disconnecting you/not responding from bad length/whatever else
Gah. That's crap. I'll have to check my code then. But if I can't find anything I'll be back!
Quote from: rabbit on April 27, 2005, 09:43 AM
Gah. That's crap. I'll have to check my code then. But if I can't find anything I'll be back!
Check your packet dumps, too. :)
Packet dumps with that code are evil, I still have to make a function like DebugOutput() to clean them up.