VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
clientEventManagerTCP.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
8 #include "../eventManagerTCPSim/eventManagerTCP.h"
9 
14 
16 {
17 public:
20 
22  virtual ~DtClientEventManagerTCP() override;
23 
25  static DtEventManager* creator();
26 
28  virtual bool connect();
29 
31  virtual void disconnect();
32 
33  virtual bool hasNetworkConnection() const override {
34  return (mySocket != 0);
35  }
36 
38  virtual void tick() override;
39 
40 protected:
42  virtual bool sendPacketOnNetwork(char* buffer, size_t length) override;
43 
44 protected:
45  DtInetTcpSocket* mySocket;
46 };
virtual void disconnect()
Call to disconnect from the network and start receiving exercise connection interactions again...
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
virtual bool sendPacketOnNetwork(char *buffer, size_t length) override
Sends the given buffer packet on the network.
virtual ~DtClientEventManagerTCP() override
DTOR.
Definition: eventManagerTCP.h:35
virtual void tick() override
Check to see if there is anything to receive.
virtual bool hasNetworkConnection() const override
Return true if the TCP network is active.
Definition: clientEventManagerTCP.h:33
DtInetTcpSocket * mySocket
Definition: clientEventManagerTCP.h:45
This class will open a TCP connection on a fixed port for local host only as an example of how to sen...
Definition: clientEventManagerTCP.h:15
virtual bool connect()
Call to connect to the TCP network and to stop receiving data interactions from the network...
static DtEventManager * creator()
Static creator method.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)