11#include <sys/select.h>
18#ifndef __BE_PROCESS_MESSAGECENTERUTILITY__
19#define __BE_PROCESS_MESSAGECENTERUTILITY__
25 namespace MessageCenterUtility
54 struct timeval &timeout,
55 int32_t numSeconds = 0);
uint32_t getClientID(const Memory::uint8Array &message)
Obtain Client ID from a transmitted message.
fd_set fileDescriptorSet(int fd)
Create a set of a single file descriptor to use with select(2).
bool dataAvailable(int fd, int32_t numSeconds, DescriptorType type=DescriptorType::Read)
Obrain whether or not a file descriptor has data available.
Memory::uint8Array setClientID(uint32_t clientID, Memory::uint8Array &message)
Encode client ID into a message.
Memory::uint8Array getMessage(const Memory::uint8Array &message)
Obtain message portion of transmitted message.
struct timeval * createTimeout(struct timeval &timeout, int32_t numSeconds=0)
Initialize a struct timeval.
DescriptorType
Possible types of IO descriptors.
@ Write
Write file descriptors.
@ Read
Read file descriptors.
@ Error
Error file descriptors.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...