dtnsim::ConnState Struct Reference

Helper struct to store the current connectivity settings between a pair (or set) of nodes. More...

#include <Connectivity.h>

List of all members.

Public Member Functions

 ConnState ()
 Default constructor, also implicitly the default connectivity state.
 ConnState (bool open, int bw, int latency)
 Constructor with explicit settings.
bool parse_time (const char *time_str, double *time)
 Utility function to parse a time specification.
bool parse_options (int argc, const char **argv, const char **invalidp)
 Utility function to fill in the values from a set of options (e.g.

Public Attributes

bool open_
u_int64_t bw_
double latency_

Detailed Description

Helper struct to store the current connectivity settings between a pair (or set) of nodes.

Definition at line 34 of file Connectivity.h.


Constructor & Destructor Documentation

dtnsim::ConnState::ConnState (  )  [inline]

Default constructor, also implicitly the default connectivity state.

Definition at line 39 of file Connectivity.h.

dtnsim::ConnState::ConnState ( bool  open,
int  bw,
int  latency 
) [inline]

Constructor with explicit settings.

Definition at line 44 of file Connectivity.h.


Member Function Documentation

bool dtnsim::ConnState::parse_options ( int  argc,
const char **  argv,
const char **  invalidp 
)

Utility function to fill in the values from a set of options (e.g.

bw=10kbps, latency=10ms).

Definition at line 92 of file Connectivity.cc.

Referenced by dtnsim::ConnCommand::exec().

bool dtnsim::ConnState::parse_time ( const char *  time_str,
double *  time 
)

Utility function to parse a time specification.

Definition at line 58 of file Connectivity.cc.


Member Data Documentation

Definition at line 59 of file Connectivity.h.

Referenced by dtnsim::SimConvergenceLayer::update_connectivity().

Definition at line 60 of file Connectivity.h.

Referenced by dtnsim::SimLink::start_next_bundle().


The documentation for this struct was generated from the following files:
Generated on Sun Nov 21 11:41:13 2010 for DTN Reference Implementation by  doxygen 1.6.3