Barracuda09 / SATPI

SATIP server for linux, suitable to run on an Raspberry Pi, Vu+, GigaBlue or any other linux box. currently supporting DVB-S/S2/T/C and transform DVB-S requests to DVB-C
http://barracuda09.github.io/SATPI
GNU General Public License v2.0
155 stars 32 forks source link

Possibility to add more ChildPIPE frontends #116

Closed Barracuda09 closed 3 years ago

Barracuda09 commented 3 years ago

Add with option --childpipe a number of how many ChildPIPE frontends are enumerated

lars18th commented 3 years ago

Hi @Barracuda09 ,

Why you want to enumerate them?

Barracuda09 commented 3 years ago

@lars18th

That is how they are added. So now only 1 is added at the moment

https://github.com/Barracuda09/SATPI/blob/e0b638609c456581d3b2983965ea3ad43867d422/src/StreamManager.cpp#L59-L80

lars18th commented 3 years ago

Ahh! So the idea is to provide more than streams over the childpipe in parallel, right? Great idea! :+1:

Barracuda09 commented 3 years ago

Yes to have more the 1 ChildPIPE frontend with with argument --childpipe to add there a number like --childpipe 3 for 3 ChildPIPE frontends

Barracuda09 commented 3 years ago

@lars18th

Could you check last commits?

Thanks

lars18th commented 3 years ago

Hi @Barracuda09 ,

Could you check last commits?

Tested. And it works like a charm. Now I can stream 2 different pipes at time.

However, I've discovered that SATPI can't share streams. For example, if I do two client connections requesting the same childpipe (using remaping) then two different frontends are open. Why not share the frontends? It's a waste of resources.

Barracuda09 commented 3 years ago

No, sharing of frontends with the same "channel/parameters" is something I have not really implemented (yet).

lars18th commented 3 years ago

OK. I suggest to close this issue as the functionality is already implemented.

Thank you|

Barracuda09 commented 3 years ago

Done