• Welcome to Valhalla Legends Archive.
 

[VB]Using Winsock Index

Started by 191Phantom191, July 30, 2003, 09:46 PM

Previous topic - Next topic

191Phantom191

Can u use the same winsock plugin for more than 1 connection to battle.net at a time? (loading more than 1 bot though same connection)

Camel

#1
Assuming you're using VB:
You could set the 'Index' property of your winsock to 0, and then dynamicly Load new winsock controls:

Dim numSocks as Long

Sub addSocket()
   numSocks = numSocks + 1
   Load myWinsock(numSocks)
End Sub

If you take this approach, you will need to rebuild all of that winsock's events as the Index paramater must be added.

191Phantom191