Convenience for asynchronous TCP socket message passing.
More...
#include <be_process_messagecenter.h>
Convenience for asynchronous TCP socket message passing.
Definition at line 25 of file be_process_messagecenter.h.
◆ MessageCenter()
◆ hasUnseenMessages()
bool BiometricEvaluation::Process::MessageCenter::hasUnseenMessages |
( |
| ) |
const |
Determine whether or not there are unseen messages.
- Returns
- true if a message has been received and not read.
- Note
- Returns immediately.
◆ getNextMessage()
bool BiometricEvaluation::Process::MessageCenter::getNextMessage |
( |
uint32_t & |
clientID, |
|
|
Memory::uint8Array & |
message, |
|
|
int |
numSeconds = -1 |
|
) |
| |
Get the next available message.
- Parameters
-
[out] | clientID | ID of the client that sent the message. |
[in,out] | message | Message received. |
[in] | numSeconds | Number of seconds to wait for a message, or < 0 to block indefinitely. |
- Returns
- true if a message was received before timing out.
◆ sendResponse()
void BiometricEvaluation::Process::MessageCenter::sendResponse |
( |
uint32_t |
clientID, |
|
|
const Memory::uint8Array & |
message |
|
) |
| const |
Send a message to a client.
- Parameters
-
clientID | ID of client to receive message. |
message | Message to send client. |
◆ disconnectClient()
void BiometricEvaluation::Process::MessageCenter::disconnectClient |
( |
uint32_t |
clientID | ) |
|
Break the connection with a client.
- Parameters
-
clientID | ID of the client to disconect. |
◆ CONNECTION_BACKLOG
const int BiometricEvaluation::Process::MessageCenter::CONNECTION_BACKLOG = 10 |
|
static |
◆ DEFAULT_PORT
const uint16_t BiometricEvaluation::Process::MessageCenter::DEFAULT_PORT = 7899 |
|
static |
◆ DEFAULT_TIMEOUT
const int BiometricEvaluation::Process::MessageCenter::DEFAULT_TIMEOUT = 1 |
|
static |
◆ MAX_MESSAGE_LENGTH
const uint64_t BiometricEvaluation::Process::MessageCenter::MAX_MESSAGE_LENGTH = 255 |
|
static |
The documentation for this class was generated from the following file: