NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_process_mcreceiver.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#ifndef __BE_PROCESS_MESSAGECENTERRECEIVER__
12#define __BE_PROCESS_MESSAGECENTERRECEIVER__
13
14#include <cstdint>
15#include <string>
16
17#include <be_process_worker.h>
18
19namespace BiometricEvaluation
20{
21 namespace Process
22 {
29 {
30 public:
32 int32_t
34
39
41 static const std::string PARAM_CLIENT_SOCKET;
43 static const std::string PARAM_CLIENT_ID;
45 static const std::string MSG_DISCONNECT;
46
47 private:
49 int _clientSocket;
51 uint32_t _clientID;
52
54 void
55 parseArgs();
56
72 receive()
73 const;
74
87 void
88 send(
89 const Memory::uint8Array &message)
90 const;
91 };
92 }
93}
94
95#endif /* __BE_PROCESS_MESSAGECENTERRECEIVER__ */
Receives message from a client, forwarding to the central MessageCenter.
static const std::string MSG_DISCONNECT
Message sent when client should disconnect.
~MessageCenterReceiver()=default
Default destructor.
static const std::string PARAM_CLIENT_SOCKET
Parameter used to pass client socket FD.
static const std::string PARAM_CLIENT_ID
Parameter used to pass an ID to the client.
MessageCenterReceiver()=default
Default constructor.
An abstraction of an instance that performs work on given data.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...