PacketFactory Class Reference

#include <PacketFactory.h>

Collaboration diagram for PacketFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

PacketcreatePacket (Packet::PROTOCOL protocol)
FramecreateFrame ()
void freePacket (Packet *packet)
void freeFrame (Frame *frame)

Static Public Member Functions

static PacketFactoryinstance ()

Private Member Functions

 PacketFactory ()
 ~PacketFactory ()

Private Attributes

boost::object_pool< FramepoolFrame
boost::object_pool
< EthernetPacket
poolEthernetPacket
boost::object_pool< ArpPacketpoolArpPacket
boost::object_pool< IpPacketpoolIpPacket
boost::object_pool< Ipv6PacketpoolIpv6Packet
boost::object_pool< IcmpPacketpoolIcmpPacket
boost::object_pool< UdpPacketpoolUdpPacket
boost::object_pool< TcpPacketpoolTcpPacket
boost::object_pool< PayloadPacketpoolPayloadPacket

Static Private Attributes

static PacketFactoryobject = NULL

Friends

class Guard

Classes

class  Guard


Constructor & Destructor Documentation

PacketFactory::PacketFactory (  )  [private]

PacketFactory::~PacketFactory (  )  [private]


Member Function Documentation

PacketFactory * PacketFactory::instance (  )  [static]

Packet * PacketFactory::createPacket ( Packet::PROTOCOL  protocol  ) 

Frame * PacketFactory::createFrame (  ) 

void PacketFactory::freePacket ( Packet packet  ) 

void PacketFactory::freeFrame ( Frame frame  ) 


Friends And Related Function Documentation

friend class Guard [friend]


Member Data Documentation

PacketFactory * PacketFactory::object = NULL [static, private]

boost::object_pool<Frame> PacketFactory::poolFrame [private]

boost::object_pool<EthernetPacket> PacketFactory::poolEthernetPacket [private]

boost::object_pool<ArpPacket> PacketFactory::poolArpPacket [private]

boost::object_pool<IpPacket> PacketFactory::poolIpPacket [private]

boost::object_pool<Ipv6Packet> PacketFactory::poolIpv6Packet [private]

boost::object_pool<IcmpPacket> PacketFactory::poolIcmpPacket [private]

boost::object_pool<UdpPacket> PacketFactory::poolUdpPacket [private]

boost::object_pool<TcpPacket> PacketFactory::poolTcpPacket [private]

boost::object_pool<PayloadPacket> PacketFactory::poolPayloadPacket [private]


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

Generated on Wed Jun 18 09:40:45 2008 for pktanon by  doxygen 1.5.5