MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Member Functions
DtTcpForwarder__vl__ Class Reference

Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections. More...

+ Inheritance diagram for DtTcpForwarder__vl__:
+ Collaboration diagram for DtTcpForwarder__vl__:

Public Member Functions

 DtTcpForwarder__vl__ (int port, const DtInetAddr &networkInterface=DtInetAddr::inaddrAny())
 Constructor.
 DtTcpForwarder__vl__ ()
 Constructor which will NOT open up a socket manager.
virtual ~DtTcpForwarder__vl__ ()
 Destructor.
virtual void sendToAll (caddr_t packet, size_t size)
 Send a packet to all open TCP connections.
virtual void readAndForward (DtTime maxTimeOverAll, DtTime maxTimePerSocket)
 Retrieve all messages from each TCP connection and forward each to all other TCP connections.
virtual void readAndForward (DtTcpMsgSocket *sock, DtTime stopTime)
 Retrieve all messages from a single TCP connection and forward each to all other TCP connections, stopping when the clock reaches the specified stop time.
virtual DtTcpMsgSocketMgrsocketMgr ()
 Return a pointer to the socket manager object owned by this instance.

Protected Attributes

DtTcpMsgSocketMgrmySocketMgr
 Pointer to the socket manager object owned by this instance.
DtClock myClock
 Clock object used to meter processing time .
DtTcpMsgSocketmyBeginSock
 The socket to begin processing next time we readAndForwarder.

Private Member Functions

 DtTcpForwarder__vl__ (const DtTcpForwarder__vl__ &)
 Copy CTOR Not Implemented – Copy Not Allowed!
DtTcpForwarder__vl__operator= (const DtTcpForwarder__vl__ &)
 Assignment Operator Not Implemented – Assignment Not Allowed!

Detailed Description

Instances of the DtTcpForwarder__vl__ class manage TCP connections for variants of Forwarder (servers) which accept TCP connections.

Constructor & Destructor Documentation

DtTcpForwarder__vl__::DtTcpForwarder__vl__ ( int  port,
const DtInetAddr &  networkInterface = DtInetAddr::inaddrAny() 
)

Constructor.

Accepts port number and interface on which to listen for incoming client connections.

DtTcpForwarder__vl__::DtTcpForwarder__vl__ ( )

Constructor which will NOT open up a socket manager.

Instead, construction of the socket manager is left to a derived class.

virtual DtTcpForwarder__vl__::~DtTcpForwarder__vl__ ( )
virtual

Destructor.

DtTcpForwarder__vl__::DtTcpForwarder__vl__ ( const DtTcpForwarder__vl__ )
private

Copy CTOR Not Implemented – Copy Not Allowed!

Member Function Documentation

DtTcpForwarder__vl__& DtTcpForwarder__vl__::operator= ( const DtTcpForwarder__vl__ )
private

Assignment Operator Not Implemented – Assignment Not Allowed!

virtual void DtTcpForwarder__vl__::readAndForward ( DtTime  maxTimeOverAll,
DtTime  maxTimePerSocket 
)
virtual

Retrieve all messages from each TCP connection and forward each to all other TCP connections.

The amount of time spent processing each individual connection is limited by maxTimePerSocket and the total amount of time spent processing all connections is limited by maxTimeOverAll.

virtual void DtTcpForwarder__vl__::readAndForward ( DtTcpMsgSocket sock,
DtTime  stopTime 
)
virtual

Retrieve all messages from a single TCP connection and forward each to all other TCP connections, stopping when the clock reaches the specified stop time.

virtual void DtTcpForwarder__vl__::sendToAll ( caddr_t  packet,
size_t  size 
)
virtual

Send a packet to all open TCP connections.

Reimplemented in DtFilteredTcpForwarder.

virtual DtTcpMsgSocketMgr* DtTcpForwarder__vl__::socketMgr ( )
virtual

Return a pointer to the socket manager object owned by this instance.

Member Data Documentation

DtTcpMsgSocket* DtTcpForwarder__vl__::myBeginSock
protected

The socket to begin processing next time we readAndForwarder.

DtClock DtTcpForwarder__vl__::myClock
protected

Clock object used to meter processing time .

DtTcpMsgSocketMgr* DtTcpForwarder__vl__::mySocketMgr
protected

Pointer to the socket manager object owned by this instance.


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

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)