How to provide a single binary TCP stream to many clients?

54 views Asked by At

I have a receiver, which provides a binary stream output on port 3001. But only one client can connect at the same time.

E.g. With first netcat IP-ADDRESS 3001 I get binary data. If I start the second one parallel, I get "Port already in use". I would like to have a server which provides the stream to many clients.

It should listen for clients on some port and if:

  • no client is connected -> do nothing
  • a client connects -> connect to the receiver and forward the data stream to the client
  • another client connects -> send the data stream to this client too
  • last client disconnects -> disconnect the connection to the receiver.

My Questions:

  • What is the technical name of the process, which I want to have (multiplexing, splitting?)?
  • Is there a linux service, which enables it out of the box?
0

There are 0 answers