Android Question New property attributes in Network and Astreams Objects

Markos

Active Member
Licensed User
Longtime User
Ho Erel

I would like to request that a new property be added to the above objects called 'Index' of type Int to help manage multiple instances of the object being initialised. Or is there a way that currently exists which I am unaware.

Thanx
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Or is there a way that currently exists which I am unaware.
You have two options to manage multiple connections:

Good option with classes: MJPEG / CCTV Server
Simple and well built.
More complicated example: [B4X] FTP Server implemented with Socket and AsyncStreams

Not so good option with Map and using the Sender keyword to distinguish between the AsyncStreams: https://www.b4x.com/android/forum/threads/b4j-cctv-example.34695/#post-203347
Adding a Tag property to AsyncStreams is equivalent to using a Map.
 
Upvote 0
Top