Valhalla Legends Forums Archive | Battle.net Bot Development | Disconnect Problem

AuthorMessageTime
Lenny
Whenever I have a procedure with the disconnected command in it like wnsck.close
it always gets disconnected first...Any fixes?
July 15, 2003, 5:45 AM
Soul Taker
Post some code please as I don't quite follow you.
July 15, 2003, 5:50 AM
Lenny
Its just that any procedure i make it always seems to skip straight to the disconnect before doing the other commands
July 15, 2003, 6:13 AM
CrAz3D
[quote author=Soul Taker link=board=17;threadid=1915;start=0#msg14870 date=1058248200]
Post some code please as I don't quite follow you.
[/quote]
This might actually help, having some of what you're doing.
July 15, 2003, 1:32 PM
Nub
Try adding a DoEvents before you close the socket

Example:

[code]
Socket.Senddata "blah blah blah im leaveing bnet... blah..." & VbCrLf
DoEvents
Socket.Close
[/code]
Hope that helps...
July 15, 2003, 6:28 PM
Lenny
Like
Cleanslatebot1.Send "Disconnected by " + User
Cleanslatebot1.Disconnect

It seems to disconnect first.....
July 16, 2003, 2:11 AM
hismajesty
are you doing CSB? If so why did you post about winsock? Um...heres my code that seems to work fine....

[code]Private Sub disc_Click()
AddChat "Disconnected " & vbNewLine, vbRed
CleanSlateBot1.Disconnect
Form1.lvChannel.ListItems.Clear
End Sub[/code]
July 16, 2003, 3:22 AM
Lenny
The same problems goes for winsock
it seems to disconnected before sending the text to bnet...Is there some order of precedence I should know about between sending data and disconnecting?
July 16, 2003, 3:32 AM
Camel
I hope you realise Nub already answered the question...
July 16, 2003, 6:45 AM
Lenny
Any other way...that doesnt seem to work...
July 16, 2003, 8:05 AM
Camel
Don't close it until the SendComplete event to fires.
July 16, 2003, 8:20 PM
planterspeanuts
[quote author=Camel link=board=17;threadid=1915;start=0#msg15015 date=1058386840]
Don't close it until the SendComplete event to fires.
[/quote]
July 18, 2003, 8:43 PM
Camel
[quote author=planterspeanuts link=board=17;threadid=1915;start=0#msg15227 date=1058561033]
[quote author=Camel link=board=17;threadid=1915;start=0#msg15015 date=1058386840]
Don't close it until the SendComplete event to fires.
[/quote]
[/quote]

-to
[me=Camel]sighs[/me]
July 18, 2003, 9:17 PM

Search