FAM for Win32
For Unix, the Posadis "monitor" module (formally called "fam") uses FAM, a piece of software by SGI that monitors change of files in directories. To port this module for Windows, I wrote a partial implementation of FAM for Win32. It only contains the functionality I needed, so it may not work for you. Some quirks:- This implementation does not distinguish between FamExists and FamCreated.
- Rather than directly calling select, use FAMselect. As a consequence, you don't want to use FAMCONNECTION_GETFD.
This FAM implementation is distributed under the Lesser GNU General Public License. You can use it in commercial programs; however, you need to distribute the source code of any changes you make in the FAM code. You can get the source code here:
- fam_w32.cpp - The implementation
- fam_w32.h - Header
- fam.cpp - Posadis module (use this as an example)
This page is © , 2002-2004. Best viewed with Mozilla or Konqueror (and derivatives). Be sure to contact me in case of any problems with the website or Posadis software.
![[Posadis logo]](/images/posadis-small.png)