• Welcome to Valhalla Legends Archive.
 

Disconnect Problem

Started by Lenny, July 15, 2003, 12:45 AM

Previous topic - Next topic

Lenny

Whenever I have a procedure with the disconnected command in it like wnsck.close
it always gets disconnected first...Any fixes?
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Soul Taker

Post some code please as I don't quite follow you.

Lenny

Its just that any procedure i make it always seems to skip straight to the disconnect before doing the other commands
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

CrAz3D

Quote from: Soul Taker on July 15, 2003, 12:50 AM
Post some code please as I don't quite follow you.
This might actually help, having some of what you're doing.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Nub

Try adding a DoEvents before you close the socket

Example:


Socket.Senddata "blah blah blah im leaveing bnet... blah..." & VbCrLf
DoEvents
Socket.Close

Hope that helps...

Lenny

Like
Cleanslatebot1.Send "Disconnected by " + User
Cleanslatebot1.Disconnect

It seems to disconnect first.....
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

hismajesty

#6
are you doing CSB? If so why did you post about winsock? Um...heres my code that seems to work fine....

Private Sub disc_Click()
AddChat "Disconnected " & vbNewLine, vbRed
CleanSlateBot1.Disconnect
Form1.lvChannel.ListItems.Clear
End Sub


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?
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Camel

I hope you realise Nub already answered the question...

Lenny

Any other way...that doesnt seem to work...
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Camel

Don't close it until the SendComplete event to fires.

planterspeanuts

Quote from: Camel on July 16, 2003, 03:20 PM
Don't close it until the SendComplete event to fires.

Camel