eq::net::Command Class Reference

#include <command.h>

Collaboration diagram for eq::net::Command:

Collaboration graph
[legend]

List of all members.


Detailed Description

A class managing commands and the ownership of packets.

A RefPtr<Packet> can't be used, since Packets are plain C structs send over the network. The Command manages the ownership of packet by claiming them so that only one can hold a given packet at a time. A packet passed to a holder is owned by it and will be deleted automatically when necessary.

Definition at line 28 of file command.h.


Public Member Functions

 Command (const Command &from)
void swap (Command &rhs)
PacketgetPacket ()
const PacketgetPacket () const
template<class P>
P * getPacket ()
template<class P>
const P * getPacket () const
NodePtr getNode () const
NodePtr getLocalNode () const
bool operator! () const
Packetoperator-> ()
const Packetoperator-> () const
void allocate (NodePtr node, NodePtr localNode, const uint64_t packetSize)
void release ()
bool isValid () const
bool isDispatched () const

Friends

class CommandQueue

The documentation for this class was generated from the following files:
Generated on Sat Dec 6 12:01:50 2008 for Equalizer 0.6 by  doxygen 1.5.5