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 98 of file Connectivity.cc.

References bw_, latency_, and parse_time().

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 64 of file Connectivity.cc.

References end.

Referenced by parse_options().


Member Data Documentation


The documentation for this struct was generated from the following files:

Generated on Fri Jan 30 09:27:05 2009 for DTN Reference Implementation by  doxygen 1.5.8