Valhalla Legends Archive

Programming => Battle.net Bot Development => Battle.net Bot Development References => Topic started by: 191Phantom191 on July 30, 2003, 09:46 PM

Title: [VB]Using Winsock Index
Post by: 191Phantom191 on July 30, 2003, 09:46 PM
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)
Title: Re:Multiple Winsock Connections
Post by: Camel on July 30, 2003, 11:50 PM
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.
Title: Re:Multiple Winsock Connections
Post by: 191Phantom191 on July 31, 2003, 12:22 AM
ok thanks