Hello
I'm using IRC CLASS, and I run it on a service, but I have a problem.
At the time I lose the connection, and reconnect, I think it keeps the old socket and connects 2 times.
I do not know how to close the class before reconnecting.
I've tried doing IRC.DISCONECT but it does not work, i'm try to send commands "QUIT" "SERVER" to attempt disconect before connect but dont work. My code to recconection is:
I'm using IRC CLASS, and I run it on a service, but I have a problem.
At the time I lose the connection, and reconnect, I think it keeps the old socket and connects 2 times.
I do not know how to close the class before reconnecting.
I've tried doing IRC.DISCONECT but it does not work, i'm try to send commands "QUIT" "SERVER" to attempt disconect before connect but dont work. My code to recconection is:
B4X:
public Sub IRCConnect
IRC.Initialize(Me, "chat", host, port, nick, channel)
IRC.Send("QUIT")
IRC.Disconnect
IRC.Connect
IRC.Send("SERVER " & host & ":" & port & " -i nick " & nick)
End Sub