ccnslurp.c File Reference

Attempts pull everything in a branch of the ccn name hierarchy. More...

Go to the source code of this file.

Defines

#define EXCLUDE_LOW   1
#define EXCLUDE_HIGH   2

Functions

static int namecompare (const void *a, const void *b)
static struct upcalldata * get_my_data (struct ccn_closure *selfp)
static void append_bf_all (struct ccn_charbuf *c)
static int express_my_interest (struct ccn *h, struct ccn_closure *selfp, struct ccn_charbuf *name)
static struct ccn_closuresplit_my_excludes (struct ccn_closure *selfp)
static enum ccn_upcall_res incoming_content (struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *)
static struct ccn_charbufccn_charbuf_duplicate (struct ccn_charbuf *)
static void answer_passive (struct ccn_charbuf *templ)
static struct ccn_charbufcreate_passive_templ (void)
void usage (const char *prog)
int main (int argc, char **argv)

Variables

static struct ccn_charbufpassive_templ

Detailed Description

Attempts pull everything in a branch of the ccn name hierarchy.

A CCNx command-line utility.

Copyright (C) 2008-2011 Palo Alto Research Center, Inc.

This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition in file ccnslurp.c.


Define Documentation

#define EXCLUDE_HIGH   2

Definition at line 39 of file ccnslurp.c.

#define EXCLUDE_LOW   1

Definition at line 38 of file ccnslurp.c.


Function Documentation

static void answer_passive ( struct ccn_charbuf templ  )  [static]

Definition at line 241 of file ccnslurp.c.

Referenced by create_passive_templ(), and express_my_interest().

static void append_bf_all ( struct ccn_charbuf c  )  [static]

Definition at line 339 of file ccnslurp.c.

Referenced by express_my_interest().

static struct ccn_charbuf * ccn_charbuf_duplicate ( struct ccn_charbuf c  )  [static, read]

Definition at line 351 of file ccnslurp.c.

Referenced by split_my_excludes().

static struct ccn_charbuf* create_passive_templ ( void   )  [static, read]

Definition at line 58 of file ccnslurp.c.

Referenced by main().

static int express_my_interest ( struct ccn *  h,
struct ccn_closure selfp,
struct ccn_charbuf name 
) [static]

Definition at line 254 of file ccnslurp.c.

Referenced by incoming_content().

static struct upcalldata * get_my_data ( struct ccn_closure selfp  )  [static, read]

Definition at line 86 of file ccnslurp.c.

Referenced by express_my_interest(), incoming_content(), and split_my_excludes().

static enum ccn_upcall_res incoming_content ( struct ccn_closure selfp,
enum ccn_upcall_kind  kind,
struct ccn_upcall_info info 
) [static]

Definition at line 126 of file ccnslurp.c.

int main ( int  argc,
char **  argv 
)

Definition at line 370 of file ccnslurp.c.

static int namecompare ( const void *  a,
const void *  b 
) [static]

Definition at line 76 of file ccnslurp.c.

Referenced by incoming_content().

static struct ccn_closure * split_my_excludes ( struct ccn_closure selfp  )  [static, read]

Definition at line 299 of file ccnslurp.c.

Referenced by incoming_content().

void usage ( const char *  prog  ) 

Definition at line 359 of file ccnslurp.c.


Variable Documentation

struct ccn_charbuf* passive_templ [static]

Definition at line 56 of file ccnslurp.c.

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