VR-Link API Documentation for HLA Evolved
Public Member Functions | Protected Member Functions | Protected Attributes

A DtQueueSocket is a DtSocket that does NOT send or receive. More...

+ Inheritance diagram for DtQueueSocket:
+ Collaboration diagram for DtQueueSocket:

List of all members.

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.
DtQueueSocketoperator= (const DtQueueSocket &)
 Assignment Operator Not implemented.

Protected Attributes

DtList myPackets
char * myPktBuff
int myPktBuffSize

Detailed Description

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.


Constructor & Destructor Documentation

Default constructor.

virtual DtQueueSocket::~DtQueueSocket ( ) [virtual]

Destructor.

DtQueueSocket::DtQueueSocket ( const DtQueueSocket ) [protected]

Copy CTOR not implemented.


Member Function Documentation

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]
See also:
DtRecv(caddr_t *buffptr, int *status=0)

Implements DtSocket.

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.


Member Data Documentation

char* DtQueueSocket::myPktBuff [protected]

The documentation for this class was generated from the following file:

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)