VR-Forces 5.0.1 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();
23 
25  static DtEventManager* creator();
26 
28  virtual bool connect();
29 
31  virtual void disconnect();
32 
33  virtual bool hasNetworkConnection() const
34  {
35  return (mySocket != 0);
36  }
37 
39  virtual void tick();
40 
41 protected:
43  virtual bool sendPacketOnNetwork(char* buffer, size_t length);
44 
45 protected:
46  DtInetTcpSocket* mySocket;
47 };
virtual void disconnect()
Call to disconnect from the network and start receiving exercise connection interactions again...
virtual bool sendPacketOnNetwork(char *buffer, size_t length)
Sends the given buffer packet on the network.
Definition: eventManagerTCP.h:35
virtual bool hasNetworkConnection() const
Return true if the TCP network is active.
Definition: clientEventManagerTCP.h:33
virtual void tick()
Check to see if there is anything to receive.
DtInetTcpSocket * mySocket
Definition: clientEventManagerTCP.h:46
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.
virtual ~DtClientEventManagerTCP()
DTOR.

Document ID: Generated on Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)