[vls-devel] [RFC] Suggestion for cleanup "Configuring interfaces" semantics in vls.cfg
Jean-Paul Saman
jpsaman at wxs.nl
Sat Feb 22 15:16:56 CET 2003
Tooney,
I notice in the current configuration scripts a bit of chaos and unclear
configuration items. I think it is time to rethink the configuration
strategy here, so that it becomes easier and more natural. Of course I
do not want to redo the complete configuration, I merely want to suggest
a way of working (some guidelines) for new configuration items.
> Log Message:
>
> . A few cleaning for V4L sound support.
>
>
May I suggest some more cleanup actions?
In the current CVS for VLS a user has to fill in these sections like this:
BEGIN "Interfaces"
# Domain = "Inet6" # Inet4 or Inet6
Telnet = "telnet" # Port to use for that purpose
END
# Telnet Administration
BEGIN "Telnet"
# Domain = "Inet6" # Inet4 or Inet6
LocalPort = "9999" # Port to use for that purpose
Use = "true"
END
Suggestion:
==========
If you look carefully to what is said, then you notice that the section
"Interfaces" should mean something like this:
If the interface is mentioned in the "Interfaces" section, then the
interface is going to be used. More contreet: if it lists
BEGIN "Interfaces"
# Domain = "Inet6" # Inet4 or Inet6
Telnet = "telnet" # Port to use for that purpose
END
Then the Telnet interface to be used is configured in section "telnet".
# Telnet Administration
BEGIN "Telnet"
LocalPort = "9999" # Port to use for that purpose
END
You probably noticed that the section "telnet" only lists the
configuration options specifically for Telnet. It does not list "Domain"
and "Use" anymore, because they are not needed.
I took out domain from "Telnet", because according to me it is not
likely that the same streaming machine will have a inet4 and a inet6
interface enabled.
# Domain = "Inet6" # Inet4 or Inet6
The item Use = "true" is not needed, because it the section is listed in
the meta=section "Interfaces" then it already means it is to be used. So
if people do not want to use it, then it should be commented out.
Conclusion:
===========
The total configuration for interfaces would become more natural, then
it currently is. I think the "Use = true" item is not needed, because it
is a duplication of what is being expressed in the "Interfaces" section.
I'd like to suggest the following guidelines for these configuration
sections:
1) The "Interfaces" section should only list the interface to be used
and all global information needed for those interfaces. Hence the
"Domain" item.
2) The specific interface sections, e.g. Telnet should only list
configuration items needed for that interface. No global stuff in here.
What do other people think? Agree or don't agree.
Greetings,
Jean-Paul Saman.
--
This is the vls-devel mailing-list, see http://www.videolan.org/streaming/
To unsubscribe, please read http://developers.videolan.org/lists.html
If you are in trouble, please contact <postmaster at videolan.org>
More information about the vls-devel
mailing list