MAK RTIspy API Documentation for HLA 1.3
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
forwarder
smartForwardingProcessor.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2005 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: smartForwardingProcessor.h,v $ $Revision: 1.5 $ $State: Exp $
7
*******************************************************************************/
10
11
#ifndef DtSmartForwardingProcessor_H_
12
#define DtSmartForwardingProcessor_H_
13
14
#include "
federateJoinResignFilter.h
"
15
#include "
updateInterDestinationFilter.h
"
16
#include "
rtiMsConfig.h
"
17
#include <
bitMask.h
>
18
#include <map>
19
24
class
DT_DLL_FORWARDER
DtSmartForwardingProcessor
25
{
26
private
:
28
DtSmartForwardingProcessor
();
29
31
DtSmartForwardingProcessor
(
const
DtSmartForwardingProcessor
&);
32
34
DtSmartForwardingProcessor
& operator=(
const
DtSmartForwardingProcessor
& orig);
35
36
37
public
:
39
DtSmartForwardingProcessor
( DtBoost::shared_ptr<DtForwarderNode> parent );
40
42
virtual
~
DtSmartForwardingProcessor
();
43
45
bool
federateJoined(
const
DtInetAddrAndPort
& src,
const
DtNetJoinConfirmMsg
* msg );
46
48
bool
federateResigned(
const
DtInetAddrAndPort
& src,
const
DtNetResignMsg
* msg );
49
53
bool
processJoinResignDestinations(
const
DtInetAddrAndPort
& src,
54
DtForwarderPort::DtAddressPortList
& destinations );
55
59
bool
filterUpdateInterDestinations(
const
DtInetAddrAndPort
& src,
60
caddr_t msg,
DtForwarderPort::DtAddressPortList
& destinations );
61
62
public
:
63
65
static
int
lostConnection(
const
MAKRti::DtString & connName,
66
unsigned
int
connID,
const
DtInetAddrAndPort
& connAddr,
void
* usr );
67
68
protected
:
69
71
virtual
int
lostConnection(
const
MAKRti::DtString & connName,
72
unsigned
int
connID,
const
DtInetAddrAndPort
& connAddr );
73
74
protected
:
75
typedef
std::map< unsigned long, DtInetAddrAndPort >
DtIdToAddrMap
;
76
typedef
std::map< DtInetAddrAndPort, DtBitMask >
DtAddrToIdMaskMap
;
77
DtBoost::shared_ptr<DtForwarderNode>
myParent
;
78
DtIdToAddrMap
myFedIdToAddressMap
;
79
DtAddrToIdMaskMap
myAddressToFedIdsMap
;
80
DtFederateJoinResignFilter<DtSmartForwardingProcessor>
*
myJoinResignFilter
;
81
DtUpdateInterDestinationFilter<DtSmartForwardingProcessor>
*
myUpdateInterFilter
;
82
83
};
84
85
#endif
Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)