This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Ethernet and httpd
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: "Michael Trozzo" <trozzo at arcor dot de>
- Cc: <ecos-discuss at sources dot redhat dot com>
- Date: 09 Mar 2004 10:38:14 +0000
- Subject: Re: [ECOS] Ethernet and httpd
- References: <003101c4055c$44d11620$0300a8c0@LAPTOP>
"Michael Trozzo" <trozzo@arcor.de> writes:
> Hello,
>
> I figured out how to set up and run the httpd web server, and all is
> well in that regard. However, I'm having trouble trying to get the next
> part of this to work. What I want to do is at program start, look for an
> Ethernet connection. If there is a connection, then start the httpd
> server. If no connection exists, then do something else. I've been
> going through the docs about Ethernet, but I'm not 100% clear as to what
> to look for. Also, I can't seem to locate the routine to launch the
> server at a time other than startup. I've only been able to have the
> server start up right at the initialization. Could someone point me in
> the right direction?
I cannot help with the ethernet issue, with hope someone else will be
able to answer that. However, the HTTPD issue is something I can fix,
I've just checked in a patch to the HTTPD package to add a
CYGNUM_HTTPD_SERVER_AUTO_START option which, if disabled, allows the
application to start the HTTPD by calling cyg_httpd_startup()
explicitly.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss