B4X:
Sub StartConnection As ResumableSub
Funzioni.ScriviLog("Trying to connect to: " & Funzioni.ip)
CloseExistingConnection
clientSocket.Initialize("clientSocket")
clientSocket.Connect(Funzioni.ip, Funzioni.port, 8000)
Wait For ClientSocket_Connected (Successful As Boolean)...
B4X:
Sub StartConnection As ResumableSub
Funzioni.ScriviLog("Trying to connect to: " & Funzioni.ip)
CloseExistingConnection
clientSocket.Initialize("clientSocket")
clientSocket.Connect(Funzioni.ip, Funzioni.port, 8000)
Wait For ClientSocket_Connected (Successful As Boolean)...