VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtUdpServer.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
14 #include <string>
15 
16 class DtInetSocket;
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtMessageDispatcher;
22  class DtUdpMessageClient;
23 
28  {
29  private:
30  DtUdpServer();
31 
32  public:
34  DtUdpServer(DtDe& de, const std::string& udpDevice, const std::string& udpAddress, int port);
35 
37  virtual ~DtUdpServer();
38 
40  virtual void checkForMessages();
41 
43  virtual void addClient();
44 
46  virtual void removeClient();
47 
48  int clientCount() const
49  {
50  return myClientCount;
51  }
52 
54  static void setBlocking(bool blocking);
55 
56 
57  protected:
58 
60  void processReads();
61 
62  protected:
63 
65  std::string myUdpAddress;
66  std::string myUdpDevice;
67  int myPort;
70 
72  };
73 }
74 
DtUdpMessageClient * myMessageClient
Definition: DtUdpServer.h:69
int myPort
Definition: DtUdpServer.h:67
std::string myUdpAddress
Definition: DtUdpServer.h:65
std::string myUdpDevice
Definition: DtUdpServer.h:66
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
DtDe & myDe
Definition: DtUdpServer.h:64
int clientCount() const
Definition: DtUdpServer.h:48
int myClientCount
Definition: DtUdpServer.h:68
IGI Manager managers both IGI clients and IGI interfaces.
Definition: DtMessageDispatcher.h:31
DtMessageDispatcher & myDispatcher
Definition: DtUdpServer.h:71
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
A remote UDP client that the UDP server communicates with.
Definition: DtUdpMessageClient.h:27
This is used by the master to send and RDEs to receive UDP (broadcast or multicast) messages...
Definition: DtUdpServer.h:27
Contains DLL export macros.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)