#include <generaloption.h>
Definition at line 43 of file generaloption.h.
GeneralOption::GeneralOption | ( | ) |
null constructor which instantiates params to default values, creates a socketudp and a lock
Definition at line 35 of file generaloption.cpp.
GeneralOption::GeneralOption | ( | int | socketudp | ) |
null constructor which instantiates params to default values, sets the socketudp to input param
socketudp | identifier of socket udp |
Definition at line 80 of file generaloption.cpp.
GeneralOption::GeneralOption | ( | int | socketudp, |
pthread_mutex_t | lock | ||
) |
null constructor which instantiates params to default values, sets the socketudp and lock to input params
socketudp | identifier of socket udp |
lock | identifier of lock |
Definition at line 92 of file generaloption.cpp.
GeneralOption::~GeneralOption | ( | ) |
Definition at line 99 of file generaloption.cpp.
uint16 GeneralOption::dst_port | ( | ) |
destination port number user in probing
Definition at line 329 of file generaloption.cpp.
std::string GeneralOption::eth | ( | ) |
GeneralOption::eth get the name of eth.
Definition at line 209 of file generaloption.cpp.
pid_t GeneralOption::ip_id | ( | ) |
get the value of ID fiel to set in sender IP header
Definition at line 199 of file generaloption.cpp.
pthread_mutex_t GeneralOption::lock | ( | ) |
get the lock
Definition at line 249 of file generaloption.cpp.
int GeneralOption::protocol_number | ( | ) |
GeneralOption::protocol_number.
get the protocol number used to send probe
Definition at line 269 of file generaloption.cpp.
int GeneralOption::retries | ( | ) |
PUBLIC METHOD get the number of retries to send probe if no response is obtained
Definition at line 139 of file generaloption.cpp.
void GeneralOption::set_dst_port | ( | uint16 | dst_port | ) |
set destination port number to use in probing
dst_port | uint16 value of destination port number |
Definition at line 339 of file generaloption.cpp.
void GeneralOption::set_eth | ( | std::string | eth | ) |
set the name of eth
eth | string value of eth |
Definition at line 219 of file generaloption.cpp.
void GeneralOption::set_lock | ( | pthread_mutex_t | lock | ) |
set the lock
lock |
Definition at line 259 of file generaloption.cpp.
void GeneralOption::set_protocol_number | ( | int | protocol_number | ) |
GeneralOption::set_protocol_number.
set the protocol number to send probe with a specific protocol
protocol_number | number of protocol used to reach destination IP address |
Definition at line 279 of file generaloption.cpp.
void GeneralOption::set_retries | ( | int | retries | ) |
set the number of retries to send probe if no response is obtained
retries | number of retry |
Definition at line 149 of file generaloption.cpp.
void GeneralOption::set_socketudp | ( | int | socketudp | ) |
set socket to use in probing if it is opened outside library
socketudp | integer value of socket |
Definition at line 239 of file generaloption.cpp.
void GeneralOption::set_src_port | ( | uint16 | src_port | ) |
set source port number to use in probing
src_port | uint16 value of source port number |
Definition at line 319 of file generaloption.cpp.
void GeneralOption::set_timeout | ( | int | timeout | ) |
set the time to attend a response to sender probe
timeout | value of timeout |
Definition at line 169 of file generaloption.cpp.
void GeneralOption::set_ttl | ( | int | ttl | ) |
set the value of TTL field in sender IP header
ttl | value of TTL to set in sender IP header |
Definition at line 189 of file generaloption.cpp.
void GeneralOption::set_verbose_mode | ( | bool | verbose_mode | ) |
GeneralOption::set_verbose_mode.
set true if verbose mode is enabled
verbose_mode | boolean value to set verbose mode. False by default. |
Definition at line 299 of file generaloption.cpp.
int GeneralOption::socketudp | ( | ) |
get the identification of socket
Definition at line 229 of file generaloption.cpp.
uint16 GeneralOption::src_port | ( | ) |
source port number used in probing
Definition at line 309 of file generaloption.cpp.
int GeneralOption::timeout | ( | ) |
get the time in which obtains a response
Definition at line 159 of file generaloption.cpp.
int GeneralOption::ttl | ( | ) |
get the value of TTL field to set in sender IP header
Definition at line 179 of file generaloption.cpp.
bool GeneralOption::verbose_mode | ( | ) |
true if verbose mode is enabled
Definition at line 289 of file generaloption.cpp.