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
TransPacket Class Reference

#include <transport_layer.h>

Inheritance diagram for TransPacket:
Inheritance graph
Collaboration diagram for TransPacket:
Collaboration graph

Public Member Functions

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

Private Attributes

u_short packet_size
 
u_chardata
 
short proto
 

Detailed Description

Definition at line 249 of file transport_layer.h.

Constructor & Destructor Documentation

TransPacket::TransPacket ( u_char data,
u_short  data_size,
short  proto 
)

Definition at line 325 of file transport_layer.cpp.

References data, packet_size, and proto.

TransPacket::~TransPacket ( )

Definition at line 332 of file transport_layer.cpp.

Member Function Documentation

u_short TransPacket::get_data_size ( )
virtual

Return size of packet in Bytes

Implements Packet.

Definition at line 334 of file transport_layer.cpp.

References packet_size.

std::string TransPacket::get_message ( )
virtual

Return protocol specific message to include in label

Implements Packet.

Definition at line 364 of file transport_layer.cpp.

References proto, and TRANS_PROTO_NAME.

Ports TransPacket::get_ports ( )
virtual

Return ports, make_ports(0,0) otherwise

Implements Packet.

Definition at line 369 of file transport_layer.cpp.

References make_ports().

short TransPacket::get_proto ( )
virtual

Return protocol numer

Implements Packet.

Definition at line 349 of file transport_layer.cpp.

References proto.

u_char * TransPacket::get_upper_data ( )
virtual

Return pointer to encapsulated protocol, NULL otherwise

Implements Packet.

Definition at line 339 of file transport_layer.cpp.

u_short TransPacket::get_upper_data_size ( )
virtual

Return size of encapsulated data in Bytes, 0 otherwise

Implements Packet.

Definition at line 344 of file transport_layer.cpp.

short TransPacket::get_upper_proto ( )
virtual

Return number-id of encapsulated protocol,-1 otherwise

Implements Packet.

Definition at line 354 of file transport_layer.cpp.

std::string TransPacket::get_upper_proto_name ( )
virtual

Return name of encapsulated protocol, empty string otherwise

Implements Packet.

Definition at line 359 of file transport_layer.cpp.

Member Data Documentation

u_char* TransPacket::data
private

Definition at line 253 of file transport_layer.h.

Referenced by TransPacket().

u_short TransPacket::packet_size
private

Definition at line 252 of file transport_layer.h.

Referenced by get_data_size(), and TransPacket().

short TransPacket::proto
private

Definition at line 254 of file transport_layer.h.

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


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

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