Skip to content

Commit

Permalink
Updated instructions for OpenHPI daemon for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
avpak committed Jan 7, 2011
1 parent 5c02dff commit 6b630e3
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions README.windows
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ OpenHPI provides windows version of
-- ohdomainlist.exe
-- ohhandler.exe
-- ohparam.exe
- OpenHPI daemon as a console Windows application (openhpid.exe)
-- Slave plug-in (libslave.dll)

========================================================================
Dependencies:
Expand Down Expand Up @@ -55,9 +57,10 @@ Build instructions:
compilers correspondingly.
-- GLIB_DIR: in order that GLIB_INCLUDES and GLIB_LIBS
point to valid directories with glib headers and libraries.
- run "make -f Makefile.mingw32".
- run "make -f Makefile.mingw32 out".
- the bin subdirectory will contain all produced stuff.
- Run "make -f Makefile.mingw32".
- Run "make -f Makefile.mingw32 out".
- The bin subdirectory will contain all produced stuff.
- Optional step - strip produced exe and dll files.

========================================================================
Client Usage instructions:
Expand Down Expand Up @@ -91,6 +94,7 @@ to connect.
========================================================================
Library Known Issues:

===================================================
Seems mingw has its own copy of environment variables.
So the code:

Expand All @@ -100,6 +104,21 @@ So the code:
does not work in MSVC as expected.
But setting any variable before running executable works!

===================================================
Seems client applications do not close sockets.
The sockets remain in TIME_WAIT state.
It can exhaust system resources.

========================================================================
Daemon Usage instructions:

Only Slave plug-in is now ported under Windows.

- prepare openhpi.conf
- set OPENHPI_UID_MAP="path to uid map file"
- set OPENHPI_PATH="path to directory with libslave.dll"
- openhpid.exe -n -v -c "path to openhpi.conf"

========================================================================
Troubleshouting:

Expand Down

0 comments on commit 6b630e3

Please sign in to comment.