Sequence Chart Studio  svn HEAD revision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Packet Class Referenceabstract

#include <packet.h>

Inheritance diagram for Packet:
Inheritance graph
Collaboration diagram for Packet:
Collaboration graph

Public Member Functions

virtual ~Packet ()
 
virtual u_short get_data_size ()=0
 
virtual u_charget_upper_data ()=0
 
virtual u_short get_upper_data_size ()=0
 
virtual short get_proto ()=0
 
virtual short get_upper_proto ()=0
 
virtual std::string get_upper_proto_name ()=0
 
virtual std::string get_message ()=0
 
virtual Ports get_ports ()=0
 

Detailed Description

The abstract class representing packet. All supported protocols have to inherite and cover functionality of this class

Definition at line 73 of file packet.h.

Constructor & Destructor Documentation

virtual Packet::~Packet ( )
inlinevirtual

Definition at line 76 of file packet.h.

Member Function Documentation

virtual u_short Packet::get_data_size ( )
pure virtual
virtual std::string Packet::get_message ( )
pure virtual

Return protocol specific message to include in label

Implemented in AppPacket, TransPacket, SipPacket, IcmpPacket, UdpPacket, NetworkPacket, HttpPacket, ArpPacket, TcpPacket, Ipv6, Ipv4, DnsPacket, and EthernetPacket.

Referenced by PcapHandler::get_message_label().

virtual Ports Packet::get_ports ( )
pure virtual
virtual short Packet::get_proto ( )
pure virtual
virtual u_char* Packet::get_upper_data ( )
pure virtual

Return pointer to encapsulated protocol, NULL otherwise

Implemented in AppPacket, TransPacket, SipPacket, IcmpPacket, NetworkPacket, UdpPacket, HttpPacket, ArpPacket, TcpPacket, Ipv6, Ipv4, DnsPacket, and EthernetPacket.

Referenced by PcapHandler::packet_handler().

virtual u_short Packet::get_upper_data_size ( )
pure virtual
virtual short Packet::get_upper_proto ( )
pure virtual
virtual std::string Packet::get_upper_proto_name ( )
pure virtual

Return name of encapsulated protocol, empty string otherwise

Implemented in AppPacket, TransPacket, SipPacket, IcmpPacket, UdpPacket, NetworkPacket, HttpPacket, ArpPacket, TcpPacket, Ipv6, Ipv4, DnsPacket, and EthernetPacket.

Referenced by PcapHandler::get_message_label().


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

SourceForge.net Logo
Generated on Fri Jan 15 2016 16:26:59 for Sequence Chart Studio by  doxygen