![]() |
VR-Link API Documentation for DIS
|
Inheritance diagram for DtGroupSocket:
Collaboration diagram for DtGroupSocket:Public Member Functions | |
| DtGroupSocket (int port=DtDEFAULT_PORT, DtU8 flags=DtReadWrite, DtIpv4Addr devAddr=0) | |
| Constructor - uses default address for listening. | |
| DtGroupSocket (int port, DtIpv4Addr addr, DtU8 flags, DtIpv4Addr devAddr=0) | |
| Constructor - uses addr for listening. | |
| virtual | ~DtGroupSocket () |
| Destructor. | |
| virtual void | removeAllRemoteSites () |
| Clear the list of remote sites. | |
| virtual int | DtSend (caddr_t pkt, size_t size, DtIpv4Addr addr) |
| Virtual function override - send to all remote sites. | |
| virtual void | addRemoteSite (DtIpv4Addr addr) |
| Add/remove a remote site to send to. | |
| virtual void | removeRemoteSite (DtIpv4Addr addr) |
| virtual int | sendToAllRemoteSites (caddr_t pkt, size_t size, DtIpv4Addr dwSkipAddr=0) |
| Send to all remote sites except dwSkipAddr. | |
| virtual const DtList * | remoteSitesList () const |
| Return the remote sites list. | |
Protected Member Functions | |
| DtListItem * | findItem (DtIpv4Addr addr) const |
| DtGroupSocket (const DtGroupSocket &) | |
| Copy CTOR Not implemented. | |
| DtGroupSocket & | operator= (const DtGroupSocket &) |
| Assignment operator not implemented. | |
Protected Attributes | |
| DtList | myRemoteSites |
| DtList of DtInetAddrs (which do not need to be deleted). | |
| DtGroupSocket::DtGroupSocket | ( | int | port = DtDEFAULT_PORT, |
| DtU8 | flags = DtReadWrite, |
||
| DtIpv4Addr | devAddr = 0 |
||
| ) |
Constructor - uses default address for listening.
Will not send to any addresses until addRemoteSite is called.
| DtGroupSocket::DtGroupSocket | ( | int | port, |
| DtIpv4Addr | addr, | ||
| DtU8 | flags, | ||
| DtIpv4Addr | devAddr = 0 |
||
| ) |
Constructor - uses addr for listening.
Will not send to any addresses until addRemoteSite is called.
| virtual DtGroupSocket::~DtGroupSocket | ( | ) | [virtual] |
Destructor.
| DtGroupSocket::DtGroupSocket | ( | const DtGroupSocket & | ) | [protected] |
Copy CTOR Not implemented.
| virtual void DtGroupSocket::addRemoteSite | ( | DtIpv4Addr | addr | ) | [virtual] |
Add/remove a remote site to send to.
| virtual int DtGroupSocket::DtSend | ( | caddr_t | pkt, |
| size_t | size, | ||
| DtIpv4Addr | addr | ||
| ) | [virtual] |
Virtual function override - send to all remote sites.
Reimplemented from DtSocket.
| DtListItem* DtGroupSocket::findItem | ( | DtIpv4Addr | addr | ) | const [protected] |
| DtGroupSocket& DtGroupSocket::operator= | ( | const DtGroupSocket & | ) | [protected] |
Assignment operator not implemented.
| const DtList * DtGroupSocket::remoteSitesList | ( | ) | const [inline, virtual] |
Return the remote sites list.
| virtual void DtGroupSocket::removeAllRemoteSites | ( | ) | [virtual] |
Clear the list of remote sites.
| virtual void DtGroupSocket::removeRemoteSite | ( | DtIpv4Addr | addr | ) | [virtual] |
| virtual int DtGroupSocket::sendToAllRemoteSites | ( | caddr_t | pkt, |
| size_t | size, | ||
| DtIpv4Addr | dwSkipAddr = 0 |
||
| ) | [virtual] |
Send to all remote sites except dwSkipAddr.
DtList DtGroupSocket::myRemoteSites [protected] |
DtList of DtInetAddrs (which do not need to be deleted).