+shttpd_general
The easy ways to make shttpd bind initially on different port are:
1) modify config.h, set LISTENING_PORTS to whatever you want
2) shttpd_init() accepts argc, argv. Pass fake argc and argv there:
const char *my_argv[] = { "shttpd", "-ports", "9090", NULL};
shttpd_init(sizeof(my_argv) / sizeof(my_argv[0]) - 1, my_argv);
On Thu, May 22, 2008 at 6:25 PM, Rudi Farkas <[EMAIL PROTECTED]> wrote:
> Hi Sergey
>
> Here is my progress report :
>
> I embedded your code in my application, which is built with Visual Studio
> 2005 for Win32 and for x64
> - I build your shttpd.lib as is,
> - I morphed your example.c main() into a thread Run() method in my C++
> application
> - I hooked up some dynamically generated pages for my app
> and it works!
>
> I did replace the call to exit() in elog() by a RaiseException() and __try
> {} __except() {} blocks in my Run(),
> so that my application can handle problems gracefully.
> The problem was that my server wants to bind to port 80;
> if Skype is already running with default settings on the target, it also
> binds to port 80.
> On Vista this causes a failure to bind, which I prefer to keep under
> control.
>
> Initially I built your code with nmake, with slightly modified makefiles
> (as discussed in previous emails).
> Next, I created .vcproj files for shttpd.lib and for console_example.exe,
> which simplifies the debugging and integration for me.
>
> Thank you again for creating this code and for making it available.
>
>
> Rudi Farkas
>
>
>
> On Thu, May 15, 2008 at 7:01 AM, Sergey Lyubka <[EMAIL PROTECTED]> wrote:
>
>> Yeah, the explicit rule is always better.
>>
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general