Re: Contribution question

dean blackketter <[email protected]> Wed, 19 Feb 2003 13:43:58 -0800
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <[email protected]>
--Apple-Mail-28-811845644
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=ISO-8859-1;
	format=flowed


On Wednesday, February 19, 2003, at 01:22  PM, Metzger, Michael wrote:

> Forgive me, where can I find this setup framework?=A0 I've been working=20
> from the current release sources, but can't find anything specific=20
> about this in CVS.=A0
Look in slimp3/server/lib/Setup.pm  This handles the settings pages.

> =A0
> I can use Prefs w/o too much problem.=A0 Is a comma seperated list of=20
> valid IPs/wildcards/ranges acceptable?
Sure, just make sure to explain it clearly in the description.


> =A0
> Thanks
> =A0
> Mike
>
> -----Original Message-----
> From: dean blackketter [mailto:[email protected]]
> Sent: Wednesday, February 19, 2003 1:34 PM
> To: [email protected]
> Subject: Re: [slimp3-dev] Contribution question
>
> Hi Michael,
>
>
> Use Robert's setup framework to provide a settings area for the user.=20
> I'd prefer that you provide a rudimentary interface in is area rather=20
> than point to a file, which makes it too hard for a large fraction of=20
> our users.
>
>
> Best to saved the settings in our existing preferences file, rather=20
> than a separate file. This needs to work seamlessly cross platform and=20
> this is the best way to ensure this. Also, you can use the Prefs=20
> interface for parsing and saving these options so you won't have to=20
> write your own.
>
>
> -dean
>
>
>
>
> On Wednesday, February 19, 2003, at 11:17 AM, Metzger, Michael wrote:
>
>
> Hi All,
>
>
>
> =A0=A0 I've implemented a simple IP based access control scheme into the=
=20
> HTTP and CLI servers.=A0 This will initially accept the connection as=20
> normal, check the IP against the valid options listed, and either=20
> allow the connection to continue accordingly or kill the socket before=20
> continuing.=A0 This all works fine at this point, but as I've just=20
> started hacking on this code, I have a few organizational questions=20
> about where to put things:
>
>
>
> 1) I put the options to enable this feature and the name of the file=20
> containing this in Prefs.pm.=A0 Is this correct?
>
>
>
> 2) Considering that this IP check is for both CLI and HTTP, I put the=20
> actual parsing/writing (of the allowedhosts file) and validating=20
> functions in Misc.pm.=A0 Is there a better network-oriented module to=20
> put these in?=A0
>
>
>
> Thanks!
>
>
>
> Mike Metzger
>
>
>
>
> <image.tiff>
>
>
>
> To unsubscribe from this group, send an email to:
>
> [email protected]
>
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>
>
<image.tiff>
>
>
> To unsubscribe from this group, send an email to:
> [email protected]
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--Apple-Mail-28-811845644
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1



On Wednesday, February 19, 2003, at 01:22  PM, Metzger, Michael wrote:


=
<excerpt><fontfamily><param>Arial</param><color><param>0000,0000,FFFF</par=
am>Forgive
me, where can I find this setup framework?=A0 I've been working from the
current release sources, but can't find anything specific about this
in CVS.=A0</color></fontfamily>

</excerpt>Look in slimp3/server/lib/Setup.pm  This handles the
settings pages.


<excerpt>=A0

<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param>I
can use Prefs w/o too much problem.=A0 Is a comma seperated list of
valid IPs/wildcards/ranges acceptable?</color></fontfamily>

</excerpt>Sure, just make sure to explain it clearly in the
description.



<excerpt>=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param>Thanks=
</color></fontfamily>

=A0

=
<fontfamily><param>Arial</param><color><param>0000,0000,FFFF</param>Mike</=
color></fontfamily>


<fontfamily><param>Tahoma</param>-----Original Message-----

<bold>From:</bold> dean blackketter [mailto:[email protected]]

<bold>Sent:</bold> Wednesday, February 19, 2003 1:34 PM

<bold>To:</bold> [email protected]

<bold>Subject:</bold> Re: [slimp3-dev] Contribution question


</fontfamily>Hi Michael,



Use Robert's setup framework to provide a settings area for the user.
I'd prefer that you provide a rudimentary interface in is area rather
than point to a file, which makes it too hard for a large fraction of
our users.



Best to saved the settings in our existing preferences file, rather
than a separate file. This needs to work seamlessly cross platform and
this is the best way to ensure this. Also, you can use the Prefs
interface for parsing and saving these options so you won't have to
write your own.



-dean





On Wednesday, February 19, 2003, at 11:17 AM, Metzger, Michael wrote:



<fontfamily><param>Arial</param>Hi All,</fontfamily>




<fontfamily><param>Arial</param>=A0=A0 I've implemented a simple IP =
based
access control scheme into the HTTP and CLI servers.=A0 This will
initially accept the connection as normal, check the IP against the
valid options listed, and either allow the connection to continue
accordingly or kill the socket before continuing.=A0 This all works fine
at this point, but as I've just started hacking on this code, I have a
few organizational questions about where to put things:</fontfamily>




<fontfamily><param>Arial</param>1) I put the options to enable this
feature and the name of the file containing this in Prefs.pm.=A0 Is this
correct?</fontfamily>




<fontfamily><param>Arial</param>2) Considering that this IP check is
for both CLI and HTTP, I put the actual parsing/writing (of the
allowedhosts file) and validating functions in Misc.pm.=A0 Is there a
better network-oriented module to put these in?=A0</fontfamily>




<fontfamily><param>Arial</param>Thanks!</fontfamily>




<fontfamily><param>Arial</param>Mike Metzger</fontfamily>





<<image.tiff>




To unsubscribe from this group, send an email to:


[email protected]





Your use of Yahoo! Groups is subject to the<underline>
<color><param>1919,1919,FFFF</param>Yahoo! Terms of
Service</color></underline>.



</excerpt><<image.tiff>

<excerpt>


To unsubscribe from this group, send an email to:

[email protected]




Your use of Yahoo! Groups is subject to the
<underline><color><param>1999,1999,FFFF</param>Yahoo! Terms of
Service</color></underline>.</excerpt>=

--Apple-Mail-28-811845644--