#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>
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. |
Definition in file FileEventWatcher.cpp.