• Welcome to Valhalla Legends Archive.
 

Connecting to Bnet?

Started by K0D3R, May 30, 2003, 12:07 AM

Previous topic - Next topic

K0D3R

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  =)

Noodlez


To connect (in VB, which I assume your using for the obvious reasons) Winsock.Connect "uswest.battle.net", 6112
To disconnect
Winsock.Close

K0D3R

nahh, i thought i put VC++ in the title, but i guess i didn't....

Zakath

connect (BinaryBotSocket, (struct sockaddr *)&sa, sizeof( sa ))
and
closesocket( BinaryBotSocket )
have always worked well for me.
Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Yoni

You should shutdown the socket too, to gracefully terminate the connection.

Zakath

Quote from: iago on February 02, 2005, 03:07 PM
Yes, you can't have everybody...contributing to the main source repository.  That would be stupid and create chaos.

Opensource projects...would be dumb.

Hazard

Not too lazy to respond to the post pointing out your mistake...

~DrivE~

"Courage is being scared to death - but saddling up anyway." --John Wayne