I tried the following code after adding the "AsyncStreamsText" class
when i run the code i cant receive any data on my server ...
but i see the Connected successfully toast
any ideas ?
B4X:
Sub Process_Globals
Private ast As AsyncStreamsText
Dim Socket1 As Socket
End Sub
Sub Globals
End Sub
Sub Activity_Create(FirstTime As Boolean)
Socket1.Initialize("Socket1")
Socket1.Connect("192.168.1.111", 403,0)
'ast.Initialize(Me, "ast", Socket1.InputStream, Socket1.OutputStream)
End Sub
Sub Socket1_Connected (Successful As Boolean)
If Successful = False Then
Msgbox(LastException.Message, "Error connecting")
Return
End If
ToastMessageShow("Connected successfully", False)
ast.Initialize(Me, "ast", Socket1.InputStream, Socket1.OutputStream)
ast.Write("test")
End Sub
when i run the code i cant receive any data on my server ...
but i see the Connected successfully toast
any ideas ?