P Philip Prins Active Member Licensed User Longtime User May 4, 2015 #1 How to create a TCP server that accepts multiple clients and send data that it receives back to the connected clients. I have searched the forum but the only example i could find was the chatroom example. I want to use it to send a received audio stream back to the clients except the sender Regards, Philip
How to create a TCP server that accepts multiple clients and send data that it receives back to the connected clients. I have searched the forum but the only example i could find was the chatroom example. I want to use it to send a received audio stream back to the clients except the sender Regards, Philip
Erel B4X founder Staff member Licensed User Longtime User May 5, 2015 #2 Are you building the clients with B4A? If yes then you should try it with a WebSocket server. The downside of web sockets is the data is sent as strings. This means that you will need to encode it as base 64 string. See this tutorial: https://www.b4x.com/android/forum/threads/40272/#content The upside is that it will be the simplest to implement and the most reliable. Upvote 0
Are you building the clients with B4A? If yes then you should try it with a WebSocket server. The downside of web sockets is the data is sent as strings. This means that you will need to encode it as base 64 string. See this tutorial: https://www.b4x.com/android/forum/threads/40272/#content The upside is that it will be the simplest to implement and the most reliable.