libH/FileEventWatcher.cpp File Reference

FileEventWatcher class body. More...

#include "FileEventWatcher.hpp"
#include "Debug.hpp"
#include "Exception.hpp"
#include "Util.hpp"
#include "UtilTime.hpp"
#include <boost/bind.hpp>
#include <boost/filesystem/operations.hpp>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <linux/input.h>
#include <unistd.h>
#include <sys/inotify.h>
#include <errno.h>
#include <sys/socket.h>
#include <sys/un.h>

Include dependency graph for FileEventWatcher.cpp:

Go to the source code of this file.

Defines

#define READ_BUF_SIZE   65536
 Default size of the read buffer for the automatic file reader.
#define NOTIFY_EVENT_SIZE   (sizeof(struct inotify_event))
 Human friendly size of the inotify_event struct.
#define NOTIFY_READ_BUF_SIZE   1024 * (NOTIFY_EVENT_SIZE + 16)
 Default size of the inotify read buffer for the automatic file reader.
#define DEVICE_NAME_BUF_SIZE   1024
 Default size of the device name buffer.
#define RETRY_FAIL_WAIT_NSECS   100000000
 Amount of nanoseconds to wait on an open of a new device before retrying.
#define MAX_RETRIES   5
 Maximum number of retries when opening a new device.
#define POLL_TIMEOUT   1000
 Poll timeout in milliseconds.


Detailed Description

FileEventWatcher class body.

Definition in file FileEventWatcher.cpp.


Generated on Wed Nov 7 10:06:12 2007 for gizmod by  doxygen 1.5.3