20#include <vlutil/vlInetUdpSocket.h>
49 DtVreMessageFactory* factory, std::string deviceAddress, std::string destinationAddress,
int port);
96 virtual void tick(
double dt);
108 virtual void handleBuffer(
char* buffer,
int length, DtInetEndpoint& from);
DtNetworkForwarder(DtVreMessageFactory *factory)
Constructor.
virtual void flush() override
Flushes bundled messages to the network via UDP.
DtInetUdpSocket * mySocket
Pointer to the UDP socket used for communication.
Definition udpNetworkForwarder.h:129
virtual ~DtUdpNetworkForwarder() override
Virtual destructor.
DtUdpNetworkForwarder(DtVreMessageFactory *factory, std::string deviceAddress, std::string destinationAddress, int port)
Constructor.
virtual bool enable() override
Enables the UDP network forwarder.
virtual void tick(double dt)
Processes incoming UDP messages.
int myPort
UDP port number for both sending and receiving.
Definition udpNetworkForwarder.h:123
std::string myDestinationAddress
Destination address for outgoing messages.
Definition udpNetworkForwarder.h:120
virtual void disable() override
Disables the UDP network forwarder.
std::string myDeviceAddress
Network interface address to bind to.
Definition udpNetworkForwarder.h:114
virtual void handleBuffer(char *buffer, int length, DtInetEndpoint &from)
Processes a received UDP packet containing VREngage messages.
Factory for creating VREngage messages from serialized data.
Definition vreMessageFactory.h:48
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
Defines base class for VREngage message network forwarding.
Defines hierarchical message routing tree for the VREngage messaging system.