For connection I use:
and for disconnection I use:
When I connect and then disconnect, everything works fine. But when I try to connect again, it refuces the connection saying:
No connection could be made because the target machine actively refused it.
Does it mean that the disconnect_click works not?
It behaves like this only on PDA whereas on the PC I can connect/disconnect as many times as I want.
(L)
B4X:
Sub connect_Click
ErrorLabel(NoServer)
client.New1
client.Connect(IP,10001)
textBox3.Text = "Connected"
......
Return True
NoServer:
Return False
End Sub
and for disconnection I use:
B4X:
Sub disconnect_click
...
client.Close
textBox3.Text = "no connection"
End Sub
When I connect and then disconnect, everything works fine. But when I try to connect again, it refuces the connection saying:
No connection could be made because the target machine actively refused it.
Does it mean that the disconnect_click works not?
It behaves like this only on PDA whereas on the PC I can connect/disconnect as many times as I want.
(L)