eq::net::Command Class Reference

A class managing commands and the ownership of packets. More...

#include <command.h>

Collaboration diagram for eq::net::Command:

Collaboration graph
[legend]

List of all members.

Public Member Functions

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
bool isValid () const
uint64_t getAllocationSize () const
Usage tracking.
bool isFree () const
void retain ()
void release ()

Friends

class CommandCache


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 41 of file command.h.


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:44 2009 for Equalizer 0.9 by  doxygen 1.5.8