SATPI icon indicating copy to clipboard operation
SATPI copied to clipboard

Check if other SAT>IP server is already running.

Open pbriesch opened this issue 10 years ago • 5 comments
trafficstars

Hello Marc,

it would be nice if SATPI could upon start check if there is already some other SAT>IP server running.

Thanks,

Paul

pbriesch avatar Jan 29 '15 14:01 pbriesch

Hi,

Do you mean on the network or just a program that uses the /dev/dvb/ adapters?

Marc

Barracuda09 avatar Jan 29 '15 20:01 Barracuda09

Well, I mean a message like this one:

Starting minisatip version 0.1.50, dvbapi version: 050A
[29/01 21:53:16.000]: New UDP socket 3 bound to 0.0.0.0:1900
[29/01 21:53:16.000]: setting multicast for 239.255.255.250
[29/01 21:53:16.000]: New UDP socket 4 bound to 239.255.255.250:1900
[29/01 21:53:16.000]: tcp_listen: failed: bind(): Address already in use
RTSP: Could not listen on port 554

In this case SATPI was already running when I started minisatip.

pbriesch avatar Jan 29 '15 20:01 pbriesch

Ok.. I understand.

Barracuda09 avatar Jan 29 '15 21:01 Barracuda09

Hi @Barracuda09 ,

I feel this is quite easy to implement: if the RTSP port can't bind, then exit. And the same for the HTTP port. You agree?

lars18th avatar Nov 20 '19 10:11 lars18th

Yes @lars18th this would not be to difficult to implement

Barracuda09 avatar Nov 20 '19 13:11 Barracuda09