Hi Everyone,
in b4a i usually this code below
Sub Process_Globals
sub Testing
Sub Socket1_Connected(Connected As Boolean)As Boolean
ini B4i, i couldn't find the replacement for Textwriter...I tried with AsyncStreamstext and AsyncStreams but it is not working like it should...
Please help guys....
Thank you in advance
in b4a i usually this code below
Sub Process_Globals
Dim txt As TextWriter
Dim Socket1 As Socket
end subDim Socket1 As Socket
sub Testing
Socket1.Initialize("Socket1")
Socket1.Connect("192.168.1.168",9100,5000)
end subSocket1.Connect("192.168.1.168",9100,5000)
Sub Socket1_Connected(Connected As Boolean)As Boolean
If Connected = True Then
txt.Initialize(Socket1.OutputStream)
txt.Write(pesan)
txt.Flush
txt.Close
Socket1.Close
End If
End Subtxt.Initialize(Socket1.OutputStream)
txt.Write(pesan)
txt.Flush
txt.Close
Socket1.Close
End If
ini B4i, i couldn't find the replacement for Textwriter...I tried with AsyncStreamstext and AsyncStreams but it is not working like it should...
Please help guys....
Thank you in advance