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

#include <application_layer.h>

Inheritance diagram for AppPacket:
Inheritance graph
Collaboration diagram for AppPacket:
Collaboration graph

Public Member Functions

 AppPacket (u_char *data, u_short data_size, Ports ports, short proto=-1)
 
 ~AppPacket ()
 
u_short get_data_size ()
 
u_charget_upper_data ()
 
u_short get_upper_data_size ()
 
std::string get_upper_proto_name ()
 
short get_proto ()
 
short get_upper_proto ()
 
std::string get_message ()
 
Ports get_ports ()
 
- Public Member Functions inherited from Packet
virtual ~Packet ()
 

Private Attributes

u_chardata
 
u_short data_size
 
Ports ports
 
short proto
 

Detailed Description

AppPacket represents not supported application porotocols and provides only the basic information about packet's data

Definition at line 266 of file application_layer.h.

Constructor & Destructor Documentation

AppPacket::AppPacket ( u_char data,
u_short  data_size,
Ports  ports,
short  proto = -1 
)

Definition at line 557 of file application_layer.cpp.

References data, data_size, ports, and proto.

AppPacket::~AppPacket ( )

Definition at line 565 of file application_layer.cpp.

Member Function Documentation

u_short AppPacket::get_data_size ( )
virtual

Return size of packet in Bytes

Implements Packet.

Definition at line 567 of file application_layer.cpp.

References data_size.

std::string AppPacket::get_message ( )
virtual

Return protocol specific message to include in label

Implements Packet.

Definition at line 598 of file application_layer.cpp.

References Ports::dst, PORT_NAME, ports, proto, and Ports::src.

Ports AppPacket::get_ports ( )
virtual

Return ports, make_ports(0,0) otherwise

Implements Packet.

Definition at line 610 of file application_layer.cpp.

References ports.

short AppPacket::get_proto ( )
virtual

Return protocol numer

Implements Packet.

Definition at line 572 of file application_layer.cpp.

References Ports::dst, ports, proto, and Ports::src.

u_char * AppPacket::get_upper_data ( )
virtual

Return pointer to encapsulated protocol, NULL otherwise

Implements Packet.

Definition at line 587 of file application_layer.cpp.

u_short AppPacket::get_upper_data_size ( )
virtual

Return size of encapsulated data in Bytes, 0 otherwise

Implements Packet.

Definition at line 592 of file application_layer.cpp.

short AppPacket::get_upper_proto ( )
virtual

Return number-id of encapsulated protocol,-1 otherwise

Implements Packet.

Definition at line 577 of file application_layer.cpp.

std::string AppPacket::get_upper_proto_name ( )
virtual

Return name of encapsulated protocol, empty string otherwise

Implements Packet.

Definition at line 582 of file application_layer.cpp.

Member Data Documentation

u_char* AppPacket::data
private

Definition at line 268 of file application_layer.h.

Referenced by AppPacket().

u_short AppPacket::data_size
private

Definition at line 269 of file application_layer.h.

Referenced by AppPacket(), and get_data_size().

Ports AppPacket::ports
private

Definition at line 270 of file application_layer.h.

Referenced by AppPacket(), get_message(), get_ports(), and get_proto().

short AppPacket::proto
private

Definition at line 271 of file application_layer.h.

Referenced by AppPacket(), get_message(), and get_proto().


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

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