NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_process_mcutility.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to Title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#include <sys/select.h>
12
13#include <cstdint>
14#include <memory>
15
16#include <be_memory_autoarray.h>
17
18#ifndef __BE_PROCESS_MESSAGECENTERUTILITY__
19#define __BE_PROCESS_MESSAGECENTERUTILITY__
20
21namespace BiometricEvaluation
22{
23 namespace Process
24 {
25 namespace MessageCenterUtility
26 {
35 fd_set
37 int fd);
38
52 struct timeval *
54 struct timeval &timeout,
55 int32_t numSeconds = 0);
56
57
59 enum class DescriptorType
60 {
62 Read,
64 Write,
66 Error
67 };
68
90 bool
92 int fd,
93 int32_t numSeconds,
95
106 uint32_t
108 const Memory::uint8Array &message);
109
124 uint32_t clientID,
125 Memory::uint8Array &message);
126
141 uint32_t clientID,
142 const Memory::uint8Array &message);
143
156 const Memory::uint8Array &message);
157 }
158 }
159}
160
161#endif /* __BE_PROCESS_MESSAGECENTERUTILITY__ */
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.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...