B4J Question TCP server

Discussion in 'B4J Questions' started by Philip Prins, May 4, 2015.

  1. Philip Prins

    Philip Prins Active Member Licensed User

    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

  2. Erel

    Erel Administrator Staff Member Licensed User

    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: http://www.b4x.com/android/forum/threads/40272/#content

    The upside is that it will be the simplest to implement and the most reliable.
    Jmu5667 likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice