VR-Link API Documentation for HLA Evolved
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vlNetworkCompatibility
vlGroupSocket.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 1997 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: vlGroupSocket.h,v $ $Revision: 1.2.6.1 $ $State: Exp $
7
*********************************************************************/
8
#ifndef vlGroupSocket_H_
9
#define vlGroupSocket_H_
10
14
15
#include "
vlNetSocket.h
"
16
17
#ifdef DtUSE_UTILITIES_NAMESPACE
18
namespace
DtUSE_UTILITIES_NAMESPACE
19
{
20
#endif
21
22
25
class
DT_DLL_NETCOMPAT
DtGroupSocket
:
public
DtNetSocket
26
{
27
public
:
28
31
DtGroupSocket
(
int
port =
DtDEFAULT_PORT
,
DtU8
flags =
DtReadWrite
,
32
DtIpv4Addr
devAddr = 0);
33
36
DtGroupSocket
(
int
port,
DtIpv4Addr
addr,
DtU8
flags,
37
DtIpv4Addr
devAddr = 0);
38
40
virtual
~
DtGroupSocket
();
41
43
virtual
void
removeAllRemoteSites();
44
46
virtual
int
DtSend(caddr_t pkt,
size_t
size,
DtIpv4Addr
addr);
47
49
virtual
void
addRemoteSite(
DtIpv4Addr
addr);
50
virtual
void
removeRemoteSite(
DtIpv4Addr
addr);
51
53
virtual
int
sendToAllRemoteSites(
54
caddr_t pkt,
size_t
size,
DtIpv4Addr
dwSkipAddr = 0);
55
57
virtual
const
DtList
* remoteSitesList()
const
;
58
59
protected
:
60
61
DtListItem
* findItem(
DtIpv4Addr
addr)
const
;
62
64
DtList
myRemoteSites
;
65
66
protected
:
67
69
DtGroupSocket
(
const
DtGroupSocket
&);
70
72
DtGroupSocket
& operator=(
const
DtGroupSocket
&);
73
74
};
75
76
inline
const
DtList
*
DtGroupSocket::remoteSitesList
()
const
77
{
78
return
&myRemoteSites;
79
}
80
81
#ifdef DtUSE_UTILITIES_NAMESPACE
82
}
83
#endif
84
85
#endif
Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (
www.mak.com
)