Hi guys,
I'm currently doing some test with the exemple FileClient (B4A/B4J) found on this forum. This exemple allow use to connect to a tcp server( B4J) and send stuff to this server then receive a reply from the server letting us know that the server received our stuff correctly.
the exemple come with a B4J server and the B4A client.
everything work fine with this setup.
I'm trying to create a socket in my .net app (actually a mqtt server) in order to make it work the same as the B4j server .
I'm able to receive message but i'm not able to reply to the B4A client and I think it's the way I reply to my client that is incorrect.
what do I have to reply to client in order to trigger this sub ( which is working in B4J)
Sub JobDone(j As HttpJob)
If j.Success Then
ToastMessageShow("Success: " & j.GetString, False)
Log("Success: " & j.GetString)
Else
ToastMessageShow("Error: " & j.ErrorMessage, True)
Log("Error: " & j.ErrorMessage)
End If
j.Release
End Sub
Thanks for your help
Yannick