VR-Forces 4.6.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
vrvCore
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
27
class
DT_DLL_VRVCORE
DtUdpServer
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
64
DtDe
&
myDe
;
65
std::string
myUdpAddress
;
66
std::string
myUdpDevice
;
67
int
myPort
;
68
int
myClientCount
;
69
DtUdpMessageClient
*
myMessageClient
;
70
71
DtMessageDispatcher
&
myDispatcher
;
72
};
73
}
74
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)