9 #include <vlutil/vlInetTcpSocket.h>
virtual void addEvent(const makVrfEvents::DtEvent &, bool &selfReflecting) override
This is the method that is used to send the message over the TCP socket.
The DtEventManager handles the sending and receipt of system events (fire, detonate, command, etc). It provides a thread-safe way for the sim engine to send and receive such events, between both components within this sim engine and other remote applications.
Definition: eventManager.h:33
voidpf void uLong size
Definition: ioapi.h:39
virtual ~DtEventManagerTCP() override
DTOR.
virtual bool sendPacketOnNetwork(char *buffer, size_t length)=0
Sends the given buffer packet on the network.
virtual bool pduHeader(DtTCPHeader &, DtInetSocket *)
If there is a net pdu header read it.
virtual void processPdu(void *buffer, int size)
virtual bool hasNetworkConnection() const =0
Return true if the TCP network is active.
Definition: eventManagerTCP.h:19
Definition: eventManagerTCP.h:35
short host
Definition: eventManagerTCP.h:22
virtual bool processSocket(DtInetSocket *)
Processes the socket, and, if there is an error, remove it.
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
short site
Definition: eventManagerTCP.h:21
class DtDataEvent
Definition: dataEvent.h:18
virtual makVrfEvents::DtDataEvent * createDataInteraction(void *buffer, size_t size) const
virtual char * getPacketForNetwork(const makVrfEvents::DtDataEvent &inter, size_t &length) const
virtual bool sendEventTCP(const makVrfEvents::DtDataEvent &e)
virtual void sendEvent(const makVrfEvents::DtEvent &) override
Pass-thru to send event directly to network manager. Override if want to not send to network manager ...