ccn_interest.c File Reference

Accessors and mutators for parsed Interest messages. More...

Go to the source code of this file.

Functions

intmax_t ccn_interest_lifetime (const unsigned char *msg, const struct ccn_parsed_interest *pi)
int ccn_interest_lifetime_seconds (const unsigned char *msg, const struct ccn_parsed_interest *pi)

Detailed Description

Accessors and mutators for parsed Interest messages.

Definition in file ccn_interest.c.


Function Documentation

intmax_t ccn_interest_lifetime ( const unsigned char *  msg,
const struct ccn_parsed_interest pi 
)
Returns:
the lifetime of the interest in units of 2**(-12) seconds (the same units as timestamps).

Definition at line 32 of file ccn_interest.c.

Referenced by ccn_construct_interest(), ccn_interest_lifetime_seconds(), main(), process_incoming_interest(), and propagate_interest().

int ccn_interest_lifetime_seconds ( const unsigned char *  msg,
const struct ccn_parsed_interest pi 
)
Returns:
the lifetime of the interest in units of seconds; any fractional part is truncated. Not useful for short-lived interests.

Definition at line 56 of file ccn_interest.c.

Referenced by main(), and process_incoming_interest().

Generated on Fri May 13 16:27:21 2011 for Content-Centric Networking in C by  doxygen 1.6.3