11#ifndef __BE_PROCESS_MESSAGECENTER__
12#define __BE_PROCESS_MESSAGECENTER__
110 std::shared_ptr<Process::Manager> _manager;
112 std::shared_ptr<Process::WorkerController> _listener;
Convenience for asynchronous TCP socket message passing.
bool hasUnseenMessages() const
Determine whether or not there are unseen messages.
void disconnectClient(uint32_t clientID)
Break the connection with a client.
MessageCenter(uint32_t port=MessageCenter::DEFAULT_PORT)
Constructor.
static const int CONNECTION_BACKLOG
Number of outstanding connections.
static const uint64_t MAX_MESSAGE_LENGTH
Maximum length of a message.
static const int DEFAULT_TIMEOUT
Default number of seconds to wait between polls.
bool getNextMessage(uint32_t &clientID, Memory::uint8Array &message, int numSeconds=-1)
Get the next available message.
static const uint16_t DEFAULT_PORT
Default port used for messages.
void sendResponse(uint32_t clientID, const Memory::uint8Array &message) const
Send a message to a client.
This software was developed at the National Institute of Standards and Technology (NIST) by employees...