B4A Tutorial [B4X] AsyncStreams Tutorial - Erel    
Feb 22, 2018   
(10 reactions)   
tags: B4ANew video tutorial:
256762156
AsyncStreams allows you to read data from an InputStream and write...
Dim AStreams As AsyncStreams
Dim Server As ServerSocket
Dim Socket1 As Socket
End Sub...
link: Please start a new thread for your question....
link: Hello to all,
I'm reading a 50 character string from a bluetooth player. The problem is that the...
link: Thanks Erel. Will do so....
B4A Tutorial [B4X] Network + AsyncStreams + B4XSerializator - Erel    
Jun 30, 2020   
(27 reactions)   
tags: transfer, B4XSerializator, Erel, NetworkBetter implementation, based on B4XPages: https://www.b4x.com/android/forum/threads/b4x-b4xpages-network-asyncstreams-b4xserializator.119011/#content
New video tutorial:
256762156
https://www.b4x.com/basic4android/images/SS-2016-10-19_15.32.02.jpg
https://www.b4x.com/basic4android/images/SS-2017-07-11_10.53.45.png
https://www.b4x.com/basic4android/images/SS-2017-07-11_11.03.32.png
This is a simple and important example. It demonstrates several good practices related to network...
B4A Tutorial FileTransfer - Send and receive files with AsyncStreams - Erel    
Jun 7, 2020   
(8 reactions)   
tags: DateienNewer example based on B4XSerializator: https://www.b4x.com/android/forum/threads/72149
AsyncStream v1.50 (part of RandomAccessFile library) includes support for sending and receiving streams of any... AsyncStreams is initialized in prefix mode.
WriteStream can efficiently handle streams of any sizes. In....
FileTransfer example demonstrates how AsyncStreams can be used to send and receive files of any size.../forum/basic4android-getting-started-tutorials/30741-net-filetransfer-implement-asyncstreams-prefix...
B4A Tutorial [B4X] [B4XPages] Network + AsyncStreams + B4XSerializator - Erel    
Jun 30, 2020   
(29 reactions)https://www.b4x.com/basic4android/images/java_USPawWZPiX.png
95652
https://www.b4x.com/basic4android/images/B4i_nUuTQqGuEH.png
Cross platform version, based on B4XPages, of the network example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/#content
It is so much simpler to use B4XPages that it feels like cheating :)
All of the code is shared. The layouts were copy-pasted....
B4A Code Snippet aSyncStream and flush - Star-Dust    
Apr 17, 2025   
(8 reactions) aSyncStream?
Private socket As Socket
Private astream As AsyncStreams
Private r As Reflector
Private aout...
astream.Initialize(socket.InputStream,socket.OutputStream,"astream")
r.Target=astream
r.Target=r.GetField("aout")
'Log(r.GetField("working"))
aout=r.GetField("out")
astream.Write("MyText"...Many output streams buffer writes to improve performance. Rather than sending each byte to its...
B4A Tutorial .Net FileTransfer - Implement AsyncStreams Prefix mode - Erel    
Jul 4, 2013   
(1 reaction)The attached C# project, implements the new stream protocol of AsyncStreams.
Relevant tutorials:
AsyncStreams Tutorial
FileTransfer - Send and receive files with AsyncStreams
This project....
There is a single change that needs to be done in device FileTransfer app:
AsyncStreams should use little endian instead of big endian. This is done by setting the second parameter of astream.InitializePrefix to False (Sub StartAStream).
The C# source code and executable are attached....
B4J Tutorial [B4x] RSA example (asyncstreams) - KMatle    
Sep 18, 2018   
(10 reactions)   
tags: Erel, B4J RSA example- Changed to B4x as the subs can be used in B4A, too
- "Send File" added (new Button to send a file to the other client)
This tutorial is based on Erel's Asyncstreams example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/
RSA basics... the main password.
Workflow
1. App1 connects to App2 via network (here asyncstreams)
2. App2 sends... port if you run it on the same pc
7. Debug it to see how the workflow is
As in the Asyncstreams...
B4J Tutorial Network + AsyncStreams + B4XSerializator - Erel    
May 15, 2017   
(7 reactions)   
tags: B4XSerializator, NetworkThis is the B4J version of this B4A example: Network + AsyncStreams + B4XSerializator
Note that B4XSerializator is cross platform, so it should be simple to use similar code to communicate with B4A or B4i programs.
https://www.b4x.com/basic4android/images/SS-2017-05-15_16.59.49.png
The program implements a server and a client. The data sent is a custom type serialized (converted to bytes) with B4XSerializator.
The port is picked randomly. This is useful to allow testing it on the same...
B4R Tutorial AsyncStreams Prefix Mode - Erel    
Feb 26, 2017   
(10 reactions)rRandomAccessFile v1.80 adds support for AsyncStreams in prefix mode.
All B4X development tools use AsyncStreams for network communication and now all of them support prefix mode (https://www.b4x.com/android/forum/threads/asyncstreams-tutorial.7669/#content).
In prefix mode a 4 bytes header is added to each message with the message length. The NewData event will only be raised when... mode is 500. The default in non-prefix mode is 100.
AsyncStreams in prefix mode + B4RSerializator...
B4A Tutorial B4A-Bridge source code - Erel    
Sep 2, 2024   
(13 reactions)   
tags: B4A-Bridge, B4A by an AsyncStreams object. AsyncStreams are very useful for networking and other external communication.
In this case the AsyncStreams object is initialized in prefix mode. In this mode we always receive complete messages which makes things simpler.
See this tutorial for more information: AsyncStreams Tutorial
This code is a good example for networking and working with service.
You are welcomed...
Page: 1  
2  
3  
4  
5  
6  
7