![]() |
VR-Link API Documentation for DIS
|
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) |
Protected Member Functions | |
| DtQueueSocket (const DtQueueSocket &) | |
| Copy CTOR not implemented. | |
| DtQueueSocket & | operator= (const DtQueueSocket &) |
| Assignment Operator Not implemented. | |
Protected Attributes | |
| DtList | myPackets |
| char * | myPktBuff |
| int | myPktBuffSize |
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.
Default constructor.
| virtual DtQueueSocket::~DtQueueSocket | ( | ) | [virtual] |
Destructor.
| DtQueueSocket::DtQueueSocket | ( | const DtQueueSocket & | ) | [protected] |
Copy CTOR not implemented.
| virtual int DtQueueSocket::DtRecv | ( | caddr_t * | buffptr, |
| int * | status = NULL |
||
| ) | [virtual] |
Virtual function override.
DtQueueSocket implements DtRecv by reading the next packet from an internal queue.
Implements DtSocket.
| virtual int DtQueueSocket::DtRecv | ( | caddr_t | buff, |
| size_t | |||
| ) | [virtual] |
| DtQueueSocket& DtQueueSocket::operator= | ( | const DtQueueSocket & | ) | [protected] |
Assignment Operator Not implemented.
| virtual int DtQueueSocket::sendTo | ( | caddr_t | packet, |
| size_t | size, | ||
| DtIpv4Addr | addr | ||
| ) | [virtual] |
Virtual function override.
DtQueueSocket implements sendTo by adding the packet to an internal queue.
Implements DtSocket.
DtList DtQueueSocket::myPackets [protected] |
char* DtQueueSocket::myPktBuff [protected] |
int DtQueueSocket::myPktBuffSize [protected] |