ccnd_msg.c File Reference

Logging support for ccnd. More...

Go to the source code of this file.

Functions

void ccnd_msg (struct ccnd_handle *h, const char *fmt,...)
 Produce ccnd debug output.
void ccnd_debug_ccnb (struct ccnd_handle *h, int lineno, const char *msg, struct face *face, const unsigned char *ccnb, size_t ccnb_size)
 Produce a ccnd debug trace entry.

Variables

const char * ccnd_usage_message
 CCND Usage message.


Detailed Description

Logging support for ccnd.

Part of ccnd - the CCNx Daemon.

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


Function Documentation

void ccnd_debug_ccnb ( struct ccnd_handle h,
int  lineno,
const char *  msg,
struct face face,
const unsigned char *  ccnb,
size_t  ccnb_size 
)

Produce a ccnd debug trace entry.

Output is produced by calling ccnd_msg.

Parameters:
h the ccnd handle
lineno caller's source line number (usually __LINE__)
msg a short text tag to identify the entry
face handle of associated face; may be NULL
ccnb points to ccnb-encoded Interest or ContentObject
ccnb_size is in bytes

Definition at line 84 of file ccnd_msg.c.

void ccnd_msg ( struct ccnd_handle h,
const char *  fmt,
  ... 
)

Produce ccnd debug output.

Copyright (C) 2009,2010 Palo Alto Research Center, Inc.

Output is produced via h->logger under the control of h->debug; prepends decimal timestamp and process identification. Caller should not supply newlines.

Parameters:
h the ccnd handle
fmt printf-like format string

Definition at line 44 of file ccnd_msg.c.


Variable Documentation

const char* ccnd_usage_message

CCND Usage message.

Definition at line 132 of file ccnd_msg.c.

Referenced by ccnd_usage(), and main().


Generated on Thu Feb 16 00:44:04 2012 for Content-Centric Networking in C by  doxygen 1.5.6