prophet::Ack Class Reference

A Prophet ACK signals successful delivery of a Bundle to its final destination within the Prophet region (whether actual bundle destination or gateway to non-Prophet region). More...

#include <Ack.h>

List of all members.

Public Member Functions

 Ack ()
 Default constructor.
 Ack (std::string endpoint_id, u_int32_t cts=0, u_int32_t seq=0, u_int32_t ets=0)
 Constructor.
 Ack (const Ack &a)
 Copy constructor.
bool operator< (const Ack &a) const
 Comparison operator for STL sort.
Ackoperator= (const Ack &a)
 Assignment operator.

std::string dest_id () const
 Accessors.
u_int32_t cts () const
 Accessors.
u_int32_t seq () const
 Accessors.
u_int32_t ets () const
 Accessors.

void set_dest_id (const std::string &dest_id)
 Mutators.
void set_cts (u_int32_t cts)
 Mutators.
void set_seq (u_int32_t seq)
 Mutators.
void set_ets (u_int32_t ets)
 Mutators.

Protected Attributes

std::string dest_id_
u_int32_t cts_
u_int32_t seq_
u_int32_t ets_

Detailed Description

A Prophet ACK signals successful delivery of a Bundle to its final destination within the Prophet region (whether actual bundle destination or gateway to non-Prophet region).

Definition at line 31 of file Ack.h.


Constructor & Destructor Documentation

prophet::Ack::Ack (  )  [inline]

Default constructor.

Definition at line 37 of file Ack.h.

prophet::Ack::Ack ( std::string  endpoint_id,
u_int32_t  cts = 0,
u_int32_t  seq = 0,
u_int32_t  ets = 0 
) [inline]

Constructor.

Definition at line 43 of file Ack.h.

prophet::Ack::Ack ( const Ack a  )  [inline]

Copy constructor.

Definition at line 53 of file Ack.h.


Member Function Documentation

u_int32_t prophet::Ack::cts (  )  const [inline]

Accessors.

Definition at line 59 of file Ack.h.

References cts_.

std::string prophet::Ack::dest_id (  )  const [inline]

Accessors.

Definition at line 58 of file Ack.h.

References dest_id_.

u_int32_t prophet::Ack::ets (  )  const [inline]

Accessors.

Definition at line 61 of file Ack.h.

References ets_.

bool prophet::Ack::operator< ( const Ack a  )  const [inline]

Comparison operator for STL sort.

Definition at line 77 of file Ack.h.

References cts_, dest_id_, and seq_.

Ack& prophet::Ack::operator= ( const Ack a  )  [inline]

Assignment operator.

Definition at line 93 of file Ack.h.

References cts_, dest_id_, ets_, and seq_.

u_int32_t prophet::Ack::seq (  )  const [inline]

Accessors.

Definition at line 60 of file Ack.h.

References seq_.

void prophet::Ack::set_cts ( u_int32_t  cts  )  [inline]

Mutators.

Definition at line 69 of file Ack.h.

References cts_.

void prophet::Ack::set_dest_id ( const std::string &  dest_id  )  [inline]

Mutators.

Definition at line 65 of file Ack.h.

References dest_id_.

void prophet::Ack::set_ets ( u_int32_t  ets  )  [inline]

Mutators.

Definition at line 71 of file Ack.h.

References ets_.

void prophet::Ack::set_seq ( u_int32_t  seq  )  [inline]

Mutators.

Definition at line 70 of file Ack.h.

References seq_.


Member Data Documentation

u_int32_t prophet::Ack::cts_ [protected]

Definition at line 104 of file Ack.h.

Referenced by cts(), operator<(), operator=(), and set_cts().

std::string prophet::Ack::dest_id_ [protected]

Definition at line 103 of file Ack.h.

Referenced by dest_id(), operator<(), operator=(), and set_dest_id().

u_int32_t prophet::Ack::ets_ [protected]

Definition at line 106 of file Ack.h.

Referenced by ets(), operator=(), and set_ets().

u_int32_t prophet::Ack::seq_ [protected]

Definition at line 105 of file Ack.h.

Referenced by operator<(), operator=(), seq(), and set_seq().


The documentation for this class was generated from the following file:
Generated on Sun Nov 21 13:21:28 2010 for DTN Reference Implementation by  doxygen 1.6.3