I'm looking for a simple way to connect and disconnect from bnet right now. Since this is the only GOOD forum i know of to get some programming help, i thought i'd ask =)
To connect (in VB, which I assume your using for the obvious reasons) Winsock.Connect "uswest.battle.net", 6112
To disconnect
Winsock.Close
nahh, i thought i put VC++ in the title, but i guess i didn't....
connect (BinaryBotSocket, (struct sockaddr *)&sa, sizeof( sa ))
and
closesocket( BinaryBotSocket )
have always worked well for me.
You should shutdown the socket too, to gracefully terminate the connection.
True, but I'm lazy.
Not too lazy to respond to the post pointing out your mistake...
~DrivE~