Win32

http://www.nanoant.com/projects/jabberd2-win32

I'm providing ready to use binaries with MySQL & SQLite support, as well with native Windows NTLogon auth module.

All services also have win32 native service support. To install service run i.e.: "router -I", or "router -U" to uninstall.

You will get "jabberd2router" (Jabber 2 Router) service installed.

By default it is installed for manual run. All .xml config files will be read from the path the files reside.

You can also run them normally in command line.

I've already asked maintainers & developers of jabberd2 if it was possible to add those patches to official SVN (CVS then). But the discussion ended up with no result.

So now, if it is possible to apply those patches to SVN it would be great, cause jabberd2 may gain many more Windows users, especially those running Windows servers at their companies.

I've tested those changes, and they are non-invasive for other build (autoconf based), so they are *NOT* changing behaviour of jabberd2 on other platforms.

Most of the changes are JABBERD2_API defines and prefixing that is required on win32 to build DLLs, since we really need to mark exported functions.

Other changes are related to mio & WinSock? and the fact that on Windows socket file descriptors don't start from 1, but usually from 1xxx, therefore "select" 1024 maximum descriptors is simply not enough.

Last changes are native service implementation at "util" & "jsignal.c".