VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
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 
65 
66 protected:
67 
70 
72  DtGroupSocket& operator=(const DtGroupSocket &);
73 
74 };
75 
77 {
78  return &myRemoteSites;
79 }
80 
81 #ifdef DtUSE_UTILITIES_NAMESPACE
82 }
83 #endif
84 
85 #endif
DtU32 DtIpv4Addr
Definition: vlUtil.h:245
Definition: vlGroupSocket.h:25
#define DtDEFAULT_PORT
Definition: vlSocket.h:49
DtList is deprecated, please use std::list<T>.
Definition: vlList.h:71
unsigned char DtU8
An eight bit unsigned integer value.
Definition: vlMachineTypes.h:137
DtList myRemoteSites
DtList of DtInetAddrs (which do not need to be deleted).
Definition: vlGroupSocket.h:64
#define DtReadWrite
Marks the Socket as Read and Writable.
Definition: vlInetSocket.h:37
#define DT_DLL_NETCOMPAT
Definition: vlMachineTypes.h:111
lint -e266
Definition: vlList.h:25
This file declares DtNetSocket, as well as several enumerations and constants needed for its use...
virtual const DtList * remoteSitesList() const
Return the remote sites list.
Definition: vlGroupSocket.h:76
A DtSocket that implements network sending and receiving function using IP/UDP broadcast, multicast or unicast.
Definition: vlNetSocket.h:72

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)