VR-Forces 4.6 Class Documentation
 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 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)