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

#include <network_layer.h>

Inheritance diagram for NetworkPacket:
Inheritance graph
Collaboration diagram for NetworkPacket:
Collaboration graph

Public Member Functions

 NetworkPacket (u_char *data, u_short data_size, short proto)
 
 ~NetworkPacket ()
 
u_short get_data_size ()
 
u_short get_upper_data_size ()
 
u_charget_upper_data ()
 
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

short proto
 
u_chardata
 
u_short data_size
 

Detailed Description

Networok packet represents not supported nework porotocols and provides only the basic information about packet's data

Definition at line 201 of file network_layer.h.

Constructor & Destructor Documentation

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

Definition at line 388 of file network_layer.cpp.

References data, data_size, and proto.

NetworkPacket::~NetworkPacket ( )

Definition at line 395 of file network_layer.cpp.

Member Function Documentation

u_short NetworkPacket::get_data_size ( )
virtual

Return size of packet in Bytes

Implements Packet.

Definition at line 397 of file network_layer.cpp.

References data_size.

std::string NetworkPacket::get_message ( )
virtual

Return protocol specific message to include in label

Implements Packet.

Definition at line 427 of file network_layer.cpp.

References NET_PROTO_NAME, and proto.

Ports NetworkPacket::get_ports ( )
virtual

Return ports, make_ports(0,0) otherwise

Implements Packet.

Definition at line 432 of file network_layer.cpp.

References make_ports().

short NetworkPacket::get_proto ( )
virtual

Return protocol numer

Implements Packet.

Definition at line 412 of file network_layer.cpp.

References proto.

u_char * NetworkPacket::get_upper_data ( )
virtual

Return pointer to encapsulated protocol, NULL otherwise

Implements Packet.

Definition at line 407 of file network_layer.cpp.

u_short NetworkPacket::get_upper_data_size ( )
virtual

Return size of encapsulated data in Bytes, 0 otherwise

Implements Packet.

Definition at line 402 of file network_layer.cpp.

short NetworkPacket::get_upper_proto ( )
virtual

Return number-id of encapsulated protocol,-1 otherwise

Implements Packet.

Definition at line 417 of file network_layer.cpp.

std::string NetworkPacket::get_upper_proto_name ( )
virtual

Return name of encapsulated protocol, empty string otherwise

Implements Packet.

Definition at line 422 of file network_layer.cpp.

Member Data Documentation

u_char* NetworkPacket::data
private

Definition at line 204 of file network_layer.h.

Referenced by NetworkPacket().

u_short NetworkPacket::data_size
private

Definition at line 205 of file network_layer.h.

Referenced by get_data_size(), and NetworkPacket().

short NetworkPacket::proto
private

Definition at line 203 of file network_layer.h.

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


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