Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: R.a.B.B.i.T on April 25, 2005, 06:17 PM

Title: PHP Sockets Suck -- Need Help
Post by: R.a.B.B.i.T on April 25, 2005, 06:17 PM
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?
Title: Re: PHP Sockets Suck -- Need Help
Post by: Adron on April 26, 2005, 05:40 AM
That sounds a bit like an ip ban...
Title: Re: PHP Sockets Suck -- Need Help
Post by: R.a.B.B.i.T on April 26, 2005, 05:43 PM
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.
Title: Re: PHP Sockets Suck -- Need Help
Post by: UserLoser. on April 26, 2005, 09:16 PM
maybe you're sending a bad packet and it's disconnecting you/not responding from bad length/whatever else
Title: Re: PHP Sockets Suck -- Need Help
Post by: R.a.B.B.i.T 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!
Title: Re: PHP Sockets Suck -- Need Help
Post by: MyndFyre on April 27, 2005, 12:02 PM
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.  :)
Title: Re: PHP Sockets Suck -- Need Help
Post by: R.a.B.B.i.T on May 01, 2005, 08:53 AM
Packet dumps with that code are evil, I still have to make a function like DebugOutput() to clean them up.