smoketestclientlib.c File Reference

Simple program for smoke-test of ccn client lib. More...

Go to the source code of this file.

Functions

void printraw (const void *r, int n)
enum ccn_upcall_res incoming_content (struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *info)
enum ccn_upcall_res outgoing_content (struct ccn_closure *selfp, enum ccn_upcall_kind kind, struct ccn_upcall_info *info)
int main (int argc, char **argv)

Variables

static struct ccn_closure incoming_content_action
static unsigned char rawbuf [1024 *1024]
static ssize_t rawlen
static struct ccn_closure interest_filter

Detailed Description

Simple program for smoke-test of ccn client lib.

A CCNx program.

Copyright (C) 2009, 2010 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 smoketestclientlib.c.


Function Documentation

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

Definition at line 47 of file smoketestclientlib.c.

int main ( int  argc,
char **  argv 
)

Definition at line 102 of file smoketestclientlib.c.

enum ccn_upcall_res outgoing_content ( struct ccn_closure selfp,
enum ccn_upcall_kind  kind,
struct ccn_upcall_info info 
)

Definition at line 71 of file smoketestclientlib.c.

void printraw ( const void *  r,
int  n 
)

Definition at line 29 of file smoketestclientlib.c.

Referenced by incoming_content(), main(), and outgoing_content().


Variable Documentation

Initial value:
 {
    .p = &incoming_content
}

Definition at line 63 of file smoketestclientlib.c.

struct ccn_closure interest_filter [static]
unsigned char rawbuf[1024 *1024] [static]

Definition at line 67 of file smoketestclientlib.c.

ssize_t rawlen [static]

Definition at line 68 of file smoketestclientlib.c.

Referenced by main(), outgoing_content(), and send_ccnb_file().

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