9 #include <gtest/gtest.h>
11 #include <sys/select.h>
20 unsigned char result = 0xff;
26 struct timeval tv = {5, 0};
28 const int nfds = select(fd + 1, &rfds, NULL, NULL, &tv);
33 const ssize_t bytes_read = read(fd, &result,
sizeof(result));
34 EXPECT_EQ(
sizeof(result), bytes_read);
Defines the logger used by the top-level component of kea-dhcp-ddns.
unsigned char parentReadState(int fd)
A helper utility for a simple synchronization with another process.