RE: Contribution question

"Metzger, Michael" <[email protected]> Wed, 19 Feb 2003 15:22:21 -0600
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <[email protected]>
------_=_NextPart_001_01C2D85C.FD2079B0
Content-Type: text/plain;
	charset="iso-8859-1"

Forgive me, where can I find this setup framework?  I've been working from
the current release sources, but can't find anything specific about this in
CVS.  
 
I can use Prefs w/o too much problem.  Is a comma seperated list of valid
IPs/wildcards/ranges acceptable?
 
Thanks
 
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. 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: 


Hi All, 



   I've implemented a simple IP based access control scheme into the HTTP
and CLI servers.  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.  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: 



1) I put the options to enable this feature and the name of the file
containing this in Prefs.pm.  Is this correct? 



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.  Is there a better network-oriented module to put these in?  



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.


------_=_NextPart_001_01C2D85C.FD2079B0
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>


<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2>Forgive me, where can I find this setup framework?&nbsp; I've been 
working from the current release sources, but can't find anything specific about 
this in CVS.&nbsp; </FONT></SPAN></DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff size=2>I can 
use Prefs w/o too much problem.&nbsp; Is a comma seperated list of valid 
IPs/wildcards/ranges acceptable?</FONT></SPAN></DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=699231821-19022003><FONT face=Arial color=#0000ff 
size=2>Mike</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> dean blackketter 
  [mailto:[email protected]]<BR><B>Sent:</B> Wednesday, February 19, 2003 
  1:34 PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> Re: 
  [slimp3-dev] Contribution question<BR><BR></FONT></DIV>
  <P>Hi Michael, </P><BR>
  <P>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. </P><BR>
  <P>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. </P><BR>
  <P>-dean </P><BR><BR><BR>
  <P>On Wednesday, February 19, 2003, at 11:17 AM, Metzger, Michael wrote: 
  </P><BR>
  <P><FONT face=Arial>Hi All,</FONT> </P>
  <P> </P>
  <P><FONT face=Arial>&nbsp;&nbsp; I've implemented a simple IP based access 
  control scheme into the HTTP and CLI servers.&nbsp; 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.&nbsp; 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:</FONT> </P>
  <P> </P>
  <P><FONT face=Arial>1) I put the options to enable this feature and the name 
  of the file containing this in Prefs.pm.&nbsp; Is this correct?</FONT> </P>
  <P> </P>
  <P><FONT face=Arial>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.&nbsp; Is there a better network-oriented 
  module to put these in?&nbsp;</FONT> </P>
  <P> </P>
  <P><FONT face=Arial>Thanks!</FONT> </P>
  <P> </P>
  <P><FONT face=Arial>Mike Metzger</FONT> </P>
  <P> </P><BR>
  <P>&lt;image.tiff&gt; </P><BR><BR>
  <P>To unsubscribe from this group, send an email to: </P>
  <P>[email protected] </P><BR><BR><BR>
  <P>Your use of Yahoo! Groups is subject to the<U> <FONT color=#1919ff>Yahoo! 
  Terms of Service</FONT></U><U></U>.</P></BLOCKQUOTE>
<br>

<!-- |**|begin egp html banner|**| -->

<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><table border=0 cellpadding=0 cellspacing=0> <tr> <td align=center><font face=arial size=-2>ADVERTISEMENT</font><br><a href="http://rd.yahoo.com/M=245454.2895241.4313951.2848452/D=egroupweb/S=1708298795:HM/A=1457554/R=0/*http://ipunda.com/clk/beibunmaisuiyuiwabei"><img src="http://us.a1.yimg.com/us.yimg.com/a/qu/quinstreet/uofpoff_300_250_0001.gif" alt="" width="300" height="250" border="0"></a></td></tr></table></td>
</tr>
<tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=245454.2895241.4313951.2848452/D=egroupmail/S=:HM/A=1457554/rand=275507255"></td></tr>
</table>

<!-- |**|end egp html banner|**| -->


<br>
<tt>
To unsubscribe from this group, send an email to:<BR>
[email protected]<BR>
<BR>
</tt>
<br>

<br>
<tt>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
</br>

</BODY></HTML>

------_=_NextPart_001_01C2D85C.FD2079B0--