Realistic 3D camera system
3D camera system components
Public Types | Public Member Functions | Friends | List of all members
icmp_header Class Reference

#include <icmp_header.hpp>

Public Types

enum  {
  echo_reply = 0, destination_unreachable = 3, source_quench = 4, redirect = 5,
  echo_request = 8, time_exceeded = 11, parameter_problem = 12, timestamp_request = 13,
  timestamp_reply = 14, info_request = 15, info_reply = 16, address_request = 17,
  address_reply = 18
}
 

Public Member Functions

 icmp_header ()
 
unsigned char type () const
 
unsigned char code () const
 
unsigned short checksum () const
 
unsigned short identifier () const
 
unsigned short sequence_number () const
 
void type (unsigned char n)
 
void code (unsigned char n)
 
void checksum (unsigned short n)
 
void identifier (unsigned short n)
 
void sequence_number (unsigned short n)
 

Friends

std::istream & operator>> (std::istream &is, icmp_header &header)
 
std::ostream & operator<< (std::ostream &os, const icmp_header &header)
 

Detailed Description

Definition at line 33 of file icmp_header.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator
echo_reply 
destination_unreachable 
source_quench 
redirect 
echo_request 
time_exceeded 
parameter_problem 
timestamp_request 
timestamp_reply 
info_request 
info_reply 
address_request 
address_reply 

Definition at line 36 of file icmp_header.hpp.

Constructor & Destructor Documentation

icmp_header::icmp_header ( )
inline

Definition at line 41 of file icmp_header.hpp.

Member Function Documentation

unsigned short icmp_header::checksum ( ) const
inline

Definition at line 45 of file icmp_header.hpp.

void icmp_header::checksum ( unsigned short  n)
inline

Definition at line 51 of file icmp_header.hpp.

unsigned char icmp_header::code ( ) const
inline

Definition at line 44 of file icmp_header.hpp.

void icmp_header::code ( unsigned char  n)
inline

Definition at line 50 of file icmp_header.hpp.

unsigned short icmp_header::identifier ( ) const
inline

Definition at line 46 of file icmp_header.hpp.

void icmp_header::identifier ( unsigned short  n)
inline

Definition at line 52 of file icmp_header.hpp.

unsigned short icmp_header::sequence_number ( ) const
inline

Definition at line 47 of file icmp_header.hpp.

void icmp_header::sequence_number ( unsigned short  n)
inline

Definition at line 53 of file icmp_header.hpp.

unsigned char icmp_header::type ( ) const
inline

Definition at line 43 of file icmp_header.hpp.

void icmp_header::type ( unsigned char  n)
inline

Definition at line 49 of file icmp_header.hpp.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const icmp_header header 
)
friend

Definition at line 58 of file icmp_header.hpp.

std::istream& operator>> ( std::istream &  is,
icmp_header header 
)
friend

Definition at line 55 of file icmp_header.hpp.


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