#include <PacketFactory.h>
Public Member Functions | |
Packet * | createPacket (Packet::PROTOCOL protocol) |
Frame * | createFrame () |
void | freePacket (Packet *packet) |
void | freeFrame (Frame *frame) |
Static Public Member Functions | |
static PacketFactory * | instance () |
Private Member Functions | |
PacketFactory () | |
~PacketFactory () | |
Private Attributes | |
boost::object_pool< Frame > | poolFrame |
boost::object_pool < EthernetPacket > | poolEthernetPacket |
boost::object_pool< ArpPacket > | poolArpPacket |
boost::object_pool< IpPacket > | poolIpPacket |
boost::object_pool< Ipv6Packet > | poolIpv6Packet |
boost::object_pool< IcmpPacket > | poolIcmpPacket |
boost::object_pool< UdpPacket > | poolUdpPacket |
boost::object_pool< TcpPacket > | poolTcpPacket |
boost::object_pool< PayloadPacket > | poolPayloadPacket |
Static Private Attributes | |
static PacketFactory * | object = NULL |
Friends | |
class | Guard |
Classes | |
class | Guard |
PacketFactory::PacketFactory | ( | ) | [private] |
PacketFactory::~PacketFactory | ( | ) | [private] |
PacketFactory * PacketFactory::instance | ( | ) | [static] |
Packet * PacketFactory::createPacket | ( | Packet::PROTOCOL | protocol | ) |
Frame * PacketFactory::createFrame | ( | ) |
void PacketFactory::freePacket | ( | Packet * | packet | ) |
void PacketFactory::freeFrame | ( | Frame * | frame | ) |
friend class Guard [friend] |
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] |