Hi Sergey,I finally got a bit of spare time to add some initial support for binding to a particular interface to shttpd. It seems to compile and work okay on Linux and Windows; let me know if you'd like me to test on more platforms (I have Solaris 8 & 10, Mac OS X 10.5, and AIX 5.2 available to me, as well as 64-bit versions of Windows Server 2003 and XP Pro). Attached is a standard patch file with the changes.
Right now, the option is labeled "interfaces", plural, but it only really supports one interface (including 0.0.0.0, which was the default before and still is). I didn't want to change or add to the API without your approval; I think a new version of shttpd_listen would be required to really do a good job of multiple interfaces (maybe "shttpd_listen_multiple"). For the project I'm working on, though, I only need the ability to bind to one interface at a time; I just needed to be able to specify one. Let me know if you'd like me to go ahead and improve things to really handle multiple interfaces (probably by adding the new API call).
Eric On Nov 15, 2007, at 4:07 PM, Sergey Lyubka wrote:
Hi Eric, choose any name for the option that you find consistent.
shttpd-interfaces.patch
Description: Binary data
------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ shttpd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shttpd-general
