Valhalla Legends Forums Archive | Battle.net Bot Development | PHP Sockets Suck -- Need Help

AuthorMessageTime
R.a.B.B.i.T
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: [quote]Warning: socket_read() unable to read from socket [0]: 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[/quote]

Stupid PHP sockets -.-

Anyone have any ideas on how I might be able to solve this?
April 25, 2005, 11:17 PM
Adron
That sounds a bit like an ip ban...
April 26, 2005, 10:40 AM
R.a.B.B.i.T
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.
April 26, 2005, 10:43 PM
UserLoser.
maybe you're sending a bad packet and it's disconnecting you/not responding from bad length/whatever else
April 27, 2005, 2:16 AM
R.a.B.B.i.T
Gah.  That's crap.  I'll have to check my code then.  But if I can't find anything I'll be back!
April 27, 2005, 2:43 PM
Myndfyr
[quote author=rabbit link=topic=11391.msg110118#msg110118 date=1114612980]
Gah.  That's crap.  I'll have to check my code then.  But if I can't find anything I'll be back!
[/quote]

Check your packet dumps, too.  :)
April 27, 2005, 5:02 PM
R.a.B.B.i.T
Packet dumps with that code are evil, I still have to make a function like DebugOutput() to clean them up.
May 1, 2005, 1:53 PM

Search