77 void add(
char* data,
int size);
virtual void flush()=0
Flushes bundled messages to the network.
virtual makVre::DtVreMessageResult handleRequestForwardMessage(makVre::DtVreMessage *msg)
Handles RequestForwardMessage control messages.
virtual void setApplicationName(const std::string &applicationName)
Sets the application name for this network forwarder.
virtual void disable()
Disables the network forwarder.
virtual bool enable()
Enables the network forwarder.
virtual ~DtNetworkForwarder()
Virtual destructor.
virtual makVre::DtVreMessageResult handleRequestStopForwardMessage(makVre::DtVreMessage *msg)
Handles RequestStopForwardMessage control messages.
std::string myApplicationName
Application name for filtering forwarding request messages.
Definition networkForwarder.h:231
virtual std::string applicationName()
Gets the current application name.
virtual void forwardEvents(const std::string &messageType)
Starts forwarding messages of the specified type.
DtNetworkForwarder(DtVreMessageFactory *factory)
Constructor.
DtVreMessageFactory * myMessageFactory
Pointer to the message factory for creating messages from raw data.
Definition networkForwarder.h:214
virtual makVre::DtVreMessageResult netSendMessage(makVre::DtVreMessage *msg)
Sends a message through the network.
virtual makVre::DtVreMessageResult handleForwardMessage(makVre::DtVreMessage *msg)
Handles ForwardMessage control messages.
static int maxBundleSize()
Gets the maximum size of a message bundle.
UInt64 myId
Unique identifier for this network forwarder instance.
Definition networkForwarder.h:220
std::vector< DtVreMessageBundle * > myMessageBundles
Vector of message bundles for outgoing messages.
Definition networkForwarder.h:226
virtual void stopForwardingEvents(const std::string &messageType)
Stops forwarding messages of the specified type.
virtual makVre::DtVreMessageResult handleStopForwardMessage(makVre::DtVreMessage *msg)
Handles StopForwardMessage control messages.
Factory for creating VREngage messages from serialized data.
Definition vreMessageFactory.h:48
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros for the VREngage Message Manager library.
#define MESSAGEMANAGER_DLL
Export/import macro for non-Windows platforms.
Definition export.h:39
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
unsigned long long UInt64
Unsigned 64-bit integer type.
Definition utilFunctions.h:42
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
char * myWriteHead
Current write position in the buffer.
Definition networkForwarder.h:38
void reset()
Resets the write position to the beginning of the buffer.
int myMaxSize
Maximum size of the buffer in bytes.
Definition networkForwarder.h:41
char * myBuffer
Pointer to the buffer containing bundled messages.
Definition networkForwarder.h:35
~DtVreMessageBundle()
Destructor.
bool canAdd(int size)
Checks if a message of the specified size can be added to the buffer.
int bufferRemaining()
Gets the number of bytes remaining in the buffer.
DtVreMessageBundle(int maxSize)
Constructor.
void add(char *data, int size)
Adds a message to the buffer.
int used()
Gets the number of bytes currently used in the buffer.
Defines the base class for all VREngage messages.
Defines hierarchical message routing tree for the VREngage messaging system.