VR-Link API Documentation for DIS
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
include
vlNetworkCompatibility
vlTcpForwarder.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1992, 1997 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: vlTcpForwarder.h,v $ $Revision: 1.1.6.1 $ $State: Exp $
7
*********************************************************************/
8
#ifndef vlTcpForwarder_H_
9
#define vlTcpForwarder_H_
10
13
14
#include <
vlutil/vlMachineTypes.h
>
15
#include <
vlutil/vlNetTypes.h
>
16
#include <
vlutil/vlUtil.h
>
17
18
#include "
vlSocket.h
"
19
#include "
vlTcpSocketMgr.h
"
20
21
#ifdef DtUSE_UTILITIES_NAMESPACE
22
namespace
DtUSE_UTILITIES_NAMESPACE
23
{
24
#endif
25
26
27
class
DtClock
;
28
29
class
DT_DLL_NETCOMPAT
DtTcpForwarder
30
{
31
public
:
32
DtTcpForwarder
(
int
port=
DtDEFAULT_PORT
);
33
39
DtTcpForwarder
(
DtSocketCreationCallback
cb,
void
* socketCreator,
int
port=
DtDEFAULT_PORT
);
40
41
virtual
~
DtTcpForwarder
();
42
43
virtual
void
sendToAll(caddr_t packet,
size_t
size);
44
45
virtual
void
readAndForward(
46
DtTime
maxTimeOverAll,
DtTime
maxTimePerSocket);
47
50
virtual
void
readAndForward(
DtTcpSocket
* sock,
DtTime
stopTime);
51
52
virtual
DtTcpSocketMgr
* socketMgr();
53
57
virtual
int
sizeLength();
58
virtual
int
sizeOffset();
59
virtual
void
setSizeLength(
int
offset);
60
virtual
void
setSizeOffset(
int
length);
61
62
protected
:
63
64
DtTcpSocketMgr
*
mySocketMgr
;
65
DtTcpSocket
*
myBeginSocket
;
66
DtListItem
*
myBeginItem
;
67
DtClock
myClock
;
68
70
const
DtList
*
mySockList
;
71
};
72
73
inline
int
DtTcpForwarder::sizeLength
()
74
{
75
return
mySocketMgr->sizeLength();
76
}
77
78
inline
int
DtTcpForwarder::sizeOffset
()
79
{
80
return
mySocketMgr->sizeOffset();
81
}
82
83
#ifdef DtUSE_UTILITIES_NAMESPACE
84
}
85
#endif
86
87
88
#endif
Document ID: Generated on Wed Oct 23 22:25:48 EDT 2013 from SVN revision 132765
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)