I need to port my B4A asychronous stream code to the b4j window socket with an asychronous stream handler for receiving data on a specific ip address. How do I create a second window socket connection and handle the incoming data stream?
B4A code:
Dim ast AsAsyncStreamsText
If ast.IsInitialized Then ast.Close
ast.Initialize(Me, "ast", serial1.InputStream, serial1.OutputStream) 'Needed! initialize AsyncStreamsText with the socket streams.