Giter Club home page Giter Club logo

Comments (10)

rofafor avatar rofafor commented on June 4, 2024

I prefer white-listing and therefore if you define your servers via command-line, the server autodiscovery should be disabled. Can you elaborate your use case a bit more detailed? You want to "detach" one of the servers via SVDRP instead of all?

from vdr-plugin-satip.

lars18th avatar lars18th commented on June 4, 2024

Hi,

Thank you for the response!

I like to "black-list" some server, not all. I prefer to do it "on-the-fly", and not using the command line. But any solution is welcome...

Here the different options:

  1. Add one command line option for DISABLE "auto-discovering" (then any listed server in the command line will be the only one to use).

  2. One command line option for black-list a server (I suggest to use IP wildcards, like 192.168.1.64/31)

  3. One user interface option for check-uncheck a server and not use it.

I hope you can implement some of them.
Regards!

from vdr-plugin-satip.

rofafor avatar rofafor commented on June 4, 2024
  1. Already implemented
  2. The command-line option will be either a white-listing one as now or a blacklisting one if you really prefer it. I won't implement any mix up.
  3. This might be a viable solution: GUI + SVDRP

from vdr-plugin-satip.

lars18th avatar lars18th commented on June 4, 2024

Hi,

  1. Already implemented

Sorry! Where is?

  1. The command-line option will be either a white-listing one as now
    or a blacklisting one if you really prefer it. I won't implement any mix up.

If you implement a simple "disable all (except white listed)" in the command line it's perfect!

  1. This might be a viable solution: GUI + SVDRP

This will be the best! :)

Regards!

from vdr-plugin-satip.

rofafor avatar rofafor commented on June 4, 2024
  1. If you define "-s" parameter on the command-line, the auto-discovery is disabled and only the defined servers are used.

from vdr-plugin-satip.

lars18th avatar lars18th commented on June 4, 2024

Hi @rofafor ,

  1. If you define "-s" parameter on the command-line, the auto-discovery
    is disabled and only the defined servers are used.

I'll check, because in my first trials when I use the "-s" parameter de auto-discovery continues working (other servers appears in the search). This is the reason for opening this issue. Perhaps the version I'm using is quite old.

Also, I hope you soon can implement the option "3". ;)

Thank you!

from vdr-plugin-satip.

rofafor avatar rofafor commented on June 4, 2024

Sorry for the delay, but I've now committed a solution to activate/deactivate SAT>IP servers via the setup menu. No SVDRP support at the moment and mode changing requires re-zapping before taken in account.

from vdr-plugin-satip.

srehm avatar srehm commented on June 4, 2024

Hello rofafor,

are you sure the implementation of cSatipServer::Assign in cede474 is correct? I am just wondering since it stops iterating over all the servers once it finds a disabled one. Is the list sorted so that the disabled ones are at the end? If not, wouldn`t it be better if the mehtod was implemented like the following?

cSatipServer *cSatipServers::Assign(int deviceIdP, int sourceP, int transponderP, int systemP) {
for (cSatipServer *s = First(); s; s = Next(s)) {
if (s->IsActive() && s->Matches(deviceIdP, sourceP, systemP, transponderP))
return s;
}
for (cSatipServer *s = First(); s; s = Next(s)) {
if (s->IsActive() && s->Assign(deviceIdP, sourceP, systemP, transponderP))
return s;
}
return NULL;
}

from vdr-plugin-satip.

lars18th avatar lars18th commented on June 4, 2024

Hi @rofafor ,

Thank you for the commit!
http://github.com/rofafor/vdr-plugin-satip/commit/cede4743cbe1fad93c60744ce9d7b989bd4c8577

Regards!

from vdr-plugin-satip.

rofafor avatar rofafor commented on June 4, 2024

@srehm, ah, thanks for your review! You're correct and my initial implementation was such, but decided to optimize a bit prettier and broke the implementation at the same time.

from vdr-plugin-satip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.