VR-Link API Documentation for HLA 1516
 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

Document ID: Generated on Mon Apr 8 04:49:21 EDT 2019 from SVN revision 197403
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)