![]() |
VR-Link API Documentation for HLA 1.3
|
A DtQueueSocket is a DtSocket that does NOT send or receive. More...
Inheritance diagram for DtQueueSocket:
Collaboration diagram for DtQueueSocket:Public Member Functions | |
| DtQueueSocket () | |
| Default constructor. | |
| virtual | ~DtQueueSocket () |
| Destructor. | |
| virtual int | sendTo (caddr_t packet, size_t size, DtIpv4Addr addr) |
| Virtual function override. | |
| virtual int | DtRecv (caddr_t *buffptr, int *status=NULL) |
| Virtual function override. | |
| virtual int | DtRecv (caddr_t buff, size_t) |
Public Member Functions inherited from DtSocket | |
| DtSocket () | |
| Default constructor. | |
| virtual | ~DtSocket () |
| Default Destructor. | |
| virtual int | DtSend (caddr_t packet, size_t size, DtIpv4Addr addr=DtUSE_DEFAULT_IP_ADDR) |
| DtSend is called when someone wants to send a packet to this "Socket", in other words, all outgoing messages are passed to this socket via DtSend(). | |
| caddr_t | DtRecv () |
| virtual DtFlushStatus | flush () |
| Send buffered messages. | |
| virtual DtFlushStatus | flush (long &byteCount) |
| Send buffered messages. | |
| virtual void | setReceiveBufferSize (int newsize) |
| Change the socket's receive buffer size that the OS uses to collect incoming data from the network. | |
| virtual void | setSendBufferSize (int newsize) |
| Change the socket's send buffer size that the OS uses when writing data to the network. | |
| virtual void | setBundling (int maxSize) |
| virtual int | isBundling () |
| virtual void | setUnbundling (int) |
| virtual DtIpv4Addr | lastSourceInetAddr () |
| virtual int | DtReportPktsRcvd (void) |
| virtual void | DtBecomeNonBlocking (void) |
| virtual void | notifyMe () |
| virtual int | listenToMulticastGroup (DtIpv4Addr addr, DtIpv4Addr netInterface=DtUSE_DEFAULT_IP_ADDR) |
| virtual int | dropMulticastGroup (DtIpv4Addr addr, DtIpv4Addr netInterface=DtUSE_DEFAULT_IP_ADDR) |
| virtual int | setMcastTtl (int) |
| virtual void | setMcastDevice (DtIpv4Addr) |
| virtual DtFilterTest * | exerciseId () |
| virtual DtFilterTest * | protocolVersion () |
| virtual DtFilterTest * | pduKind () |
| virtual DtFilterTest * | ipAddr () |
| virtual int | readFd () |
| Get the file descriptor for reading and writing to this socket. | |
| virtual int | writeFd () |
| virtual bool | isOk () const |
Protected Member Functions | |
| DtQueueSocket (const DtQueueSocket &) | |
| Copy CTOR not implemented. | |
| DtQueueSocket & | operator= (const DtQueueSocket &) |
| Assignment Operator Not implemented. | |
Protected Member Functions inherited from DtSocket | |
| virtual bool | accept (char *buf, DtIpv4Addr iaddr) |
Protected Attributes | |
| DtList | myPackets |
| char * | myPktBuff |
| int | myPktBuffSize |
Protected Attributes inherited from DtSocket | |
| BufferMap | myBufferMap |
| int | myBundlingFlag |
| int | myMaxBundleSize |
| int | mySockFd |
Additional Inherited Members | |
Static Public Member Functions inherited from DtSocket | |
| static void | initializeNetwork () |
| static void | setQuietSockets (bool quietVal) |
| These functions determine whether a socket will print messages, informative or error. | |
| static bool | areQuietSockets () |
Public Attributes inherited from DtSocket | |
| int | myBlockingFlag |
| int | pkts_rcvd |
Protected Types inherited from DtSocket | |
| typedef std::vector< char > | Buffer |
| typedef std::map< DtIpv4Addr, Buffer > | BufferMap |
Static Protected Member Functions inherited from DtSocket | |
| static int | getConfig (const char *device, int sock, ifconf *ifc) |
| Get ifconfig information by filling in ifc. | |
Static Protected Attributes inherited from DtSocket | |
| static bool | theAreQuietSockets |
| Should a socket print messages, informative or error. | |
A DtQueueSocket is a DtSocket that does NOT send or receive.
Instead, it simply queues up all packets internally; DtRecv() returns them in the order they were added with sendTo().
In DIS, you can use this class to prevent an exercise connection from sending or receiving.
| DtQueueSocket::DtQueueSocket | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
protected |
Copy CTOR not implemented.
|
virtual |
Virtual function override.
DtQueueSocket implements DtRecv by reading the next packet from an internal queue.
Implements DtSocket.
|
virtual |
|
protected |
Assignment Operator Not implemented.
|
virtual |
Virtual function override.
DtQueueSocket implements sendTo by adding the packet to an internal queue.
Implements DtSocket.
|
protected |
|
protected |
|
protected |