Object documentation: AsyncStreams B4A Library [B4X] FTP Server implemented with Socket and AsyncStreams - Erel    Jul 18, 2022   (40 reactions)   tags: B4A B4J, FTP . As it is based on AsyncStreams and it can handle multiple concurrent connections. It is compatible... closes the connection. Note that a new method was added to AsyncStreams that allows closing... B4A Tutorial [B4X] Network + AsyncStreams + B4XSerializator - Erel    Jun 30, 2020   (26 reactions)   tags: transfer, B4XSerializator, Erel, Network Better 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 [B4X] AsyncStreams Tutorial - Erel    Feb 22, 2018   (7 reactions)   tags: B4A Dim AStreams As AsyncStreams Dim Server As ServerSocket Dim Socket1 As Socket End Sub... If End Sub Once there is a connection we initialize the AsyncStreams object: AStreams...New video tutorial: 256762156 AsyncStreams allows you to read data from an InputStream and write.... AsyncStreams is very useful when working with slow streams like network streams or Bluetooth streams... those are available. Using AsyncStreams is usually simpler and safer. AsyncStreams can work in two... B4A Tutorial FileTransfer - Send and receive files with AsyncStreams - Erel    Jun 7, 2020   (8 reactions)   tags: Dateien Newer 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...-asyncstreams-prefix-mode.html#post178604 Edit: example removed as it was outdated.... B4A Tutorial [B4X] [B4XPages] Network + AsyncStreams + B4XSerializator - Erel    Jun 30, 2020   (27 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.... B4J Question AsyncStream COM-port buffer - peacemaker    Sep 30, 2022 processed further during 5-7 seconds more before the AStream_Error event is fired.
But better to catch... 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 Network + AsyncStreams + B4XSerializator - Erel    May 15, 2017   (5 reactions)   tags: B4XSerializator, Network This 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... B4J Library jSerial library - Erel    Jan 27, 2022   (20 reactions) with AsyncStreams. Both standard mode and prefix mode are supported. Note that prefix mode can only work if both sides of the connection follow the protocol. Change AStream.InitializePrefix to AStream... B4A Code Snippet aSyncStream and flush - Star-Dust    Mar 9, 2023   (5 reactions) aSyncStream? Private socket AsSocket 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"... End Sub Private Sub astream_NewData (Buffer() As Byte) Log("* " & Buffer.Length... Page: 1   2   3   4   5   6   7   |