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

#include <application_layer.h>

Inheritance diagram for SipPacket:
Inheritance graph
Collaboration diagram for SipPacket:
Collaboration graph

Public Member Functions

 SipPacket (u_char *data, u_short data_size, Ports ports, SipSettings *sip_set)
 
 ~SipPacket ()
 
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_chardata
 
u_short data_size
 
osip_message_t * sip
 
bool ok_parsed
 
Ports ports
 
SipSettingssettings
 

Static Private Attributes

static bool parser_initialized
 

Detailed Description

SIP packet represents SIP protocol For parsing and uses functionality of http://www.gnu.org/software/osip/

Definition at line 237 of file application_layer.h.

Constructor & Destructor Documentation

SipPacket::SipPacket ( u_char data,
u_short  data_size,
Ports  ports,
SipSettings sip_set 
)

Definition at line 421 of file application_layer.cpp.

References data, data_size, ok_parsed, parser_initialized, ports, settings, and sip.

SipPacket::~SipPacket ( )

Definition at line 551 of file application_layer.cpp.

References sip.

Member Function Documentation

u_short SipPacket::get_data_size ( )
virtual

Return size of packet in Bytes

Implements Packet.

Definition at line 516 of file application_layer.cpp.

References data_size.

std::string SipPacket::get_message ( )
virtual

Return protocol specific message to include in label

Implements Packet.

Definition at line 445 of file application_layer.cpp.

References ok_parsed, settings, SipSettings::show_from_to, SipSettings::show_only_nick_names, SipSettings::show_specification, SipSettings::show_version, and sip.

Ports SipPacket::get_ports ( )
virtual

Return ports, make_ports(0,0) otherwise

Implements Packet.

Definition at line 546 of file application_layer.cpp.

References ports.

short SipPacket::get_proto ( )
virtual

Return protocol numer

Implements Packet.

Definition at line 521 of file application_layer.cpp.

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

u_char * SipPacket::get_upper_data ( )
virtual

Return pointer to encapsulated protocol, NULL otherwise

Implements Packet.

Definition at line 536 of file application_layer.cpp.

u_short SipPacket::get_upper_data_size ( )
virtual

Return size of encapsulated data in Bytes, 0 otherwise

Implements Packet.

Definition at line 541 of file application_layer.cpp.

short SipPacket::get_upper_proto ( )
virtual

Return number-id of encapsulated protocol,-1 otherwise

Implements Packet.

Definition at line 526 of file application_layer.cpp.

std::string SipPacket::get_upper_proto_name ( )
virtual

Return name of encapsulated protocol, empty string otherwise

Implements Packet.

Definition at line 531 of file application_layer.cpp.

Member Data Documentation

u_char* SipPacket::data
private

Definition at line 239 of file application_layer.h.

Referenced by SipPacket().

u_short SipPacket::data_size
private

Definition at line 240 of file application_layer.h.

Referenced by get_data_size(), and SipPacket().

bool SipPacket::ok_parsed
private

Definition at line 242 of file application_layer.h.

Referenced by get_message(), and SipPacket().

bool SipPacket::parser_initialized
staticprivate

Definition at line 245 of file application_layer.h.

Referenced by SipPacket().

Ports SipPacket::ports
private

Definition at line 243 of file application_layer.h.

Referenced by get_ports(), get_proto(), and SipPacket().

SipSettings* SipPacket::settings
private

Definition at line 246 of file application_layer.h.

Referenced by get_message(), and SipPacket().

osip_message_t* SipPacket::sip
private

Definition at line 241 of file application_layer.h.

Referenced by get_message(), SipPacket(), and ~SipPacket().


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