Wanna learn how to program and write some code?  <grin />

Short answer: Not that I'm aware of, but one of the developers might chime
in differently...

I will tell you that there is some work involved, as the use of MinGW
basically says "no way Jose":

Quoting from the MinGW page

"At the basic level, MinGW is a set of include files and import libraries
that allow a console-mode program to use Microsoft's standard C runtime
library MSVCRT.DLL (available on all NT systems, and on all stock Win9x
after the original Windows 95 release (for which it can be installed
separately)). Using this basic runtime, you can write console-mode ANSI
compliant programs using GCC and use some of the extensions offered by MS C
runtime, but cannot use the features provided by the Windows32 API. The next
critical piece is the w32api package, which is a set of includes and import
libraries to enable the use of Windows32 API, and combined with the basic
runtime, you (potentially) have full access to both the C Runtime (CRT) and
Windows32 API functionality. Please see the licensing information on the
various pieces."

Note the key item:  you can write console-mode ANSI...cannot use the
features provided by the Windows32 API

So, not with MinGW as it is today.

Cygwin (http://cygwin.com/)?

Cygwin is a UNIX environment, developed by Red Hat, for Windows. It consists
of two parts:
A DLL (cygwin1.dll) which acts as a UNIX emulation layer providing
substantial UNIX API functionality.
A collection of tools, ported from UNIX, which provide UNIX/Linux look and
feel.

So, you might be able to build a ntop service with Cygwin, but that would
require reviewing all of the ifdef WIN32 code in ntop, as well as some
service interface routines...

People have tried:  http://www.student.uni-koeln.de/cygwin/Howto/NT-service/
(and there are another 5299 pages resulting from a "cygwin nt service"
search at google that I didn't look at...)

Get coding <grin />

-----Burton

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
Sylar, John
Sent: Thursday, February 21, 2002 8:26 AM
To: Users NTOP (E-mail)
Subject: [Ntop] Win32 version as a service + compile questions??


Are there plans to improve the W32 version so that it detaches from the
console and runs as a service?
I'm no programmer, so I wouldn't know how to make these modifications in the
source. I tried installing with Srvany and including the switch "Allow
interaction with the desktop". But it seems since the console doesn't return
a status to the Service Control Manager, the start up fails. Back to the
drawing board.....


_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listmanager.unipi.it/mailman/listinfo/ntop

Reply via email to