ccnr_msg.h File Reference

Part of ccnr - CCNx Repository Daemon. More...

Go to the source code of this file.

Defines

#define CCNL_NONE   0
 Levels for deciding whether or not to log.
#define CCNL_SEVERE   3
 Severe errors.
#define CCNL_ERROR   5
 Configuration errors.
#define CCNL_WARNING   7
 Something might be wrong.
#define CCNL_INFO   9
 Low-volume informational.
#define CCNL_FINE   11
 Debugging.
#define CCNL_FINER   13
 More debugging.
#define CCNL_FINEST   15
 MORE DEBUGGING YET.

Functions

int ccnr_msg_level_from_string (const char *s)
void ccnr_debug_ccnb (struct ccnr_handle *h, int lineno, const char *msg, struct fdholder *fdholder, const unsigned char *ccnb, size_t ccnb_size)
 Produce a ccnr debug trace entry.
void ccnr_msg (struct ccnr_handle *h, const char *fmt,...)
 Produce ccnr debug output.

Variables

const char * ccnr_usage_message
 CCNR Usage message.


Detailed Description

Part of ccnr - CCNx Repository Daemon.

Definition in file ccnr_msg.h.


Define Documentation

#define CCNL_ERROR   5

#define CCNL_FINE   11

#define CCNL_FINER   13

#define CCNL_FINEST   15

#define CCNL_INFO   9

#define CCNL_NONE   0

Levels for deciding whether or not to log.

No logging at all

Definition at line 31 of file ccnr_msg.h.

Referenced by ccnr_msg_level_from_string().

#define CCNL_SEVERE   3

#define CCNL_WARNING   7


Function Documentation

void ccnr_debug_ccnb ( struct ccnr_handle h,
int  lineno,
const char *  msg,
struct fdholder fdholder,
const unsigned char *  ccnb,
size_t  ccnb_size 
)

Produce a ccnr debug trace entry.

Output is produced by calling ccnr_msg.

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

Definition at line 129 of file ccnr_msg.c.

Referenced by ccnr_answer_req(), load_policy(), r_match_consume_matching_interests(), r_proto_answer_req(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_continue_enumeration(), r_proto_dump_enums(), r_proto_expect_content(), r_proto_initiate_key_fetch(), r_proto_policy_complete(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_store_find_first_match_candidate(), r_store_lookup(), r_store_next_child_at_level(), r_sync_enumerate(), and reap_enumerations().

void ccnr_msg ( struct ccnr_handle h,
const char *  fmt,
  ... 
)

Produce ccnr debug output.

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 ccnr handle
fmt printf-like format string

Definition at line 86 of file ccnr_msg.c.

Referenced by abortCompare(), ccnr_close_fd(), ccnr_collect_stats(), ccnr_debug_ccnb(), ccnr_debug_content(), ccnr_direct_client_refresh(), ccnr_init_repo_keystore(), ccnr_stats_http_set_debug(), cleanup_se(), CompareAction(), content_sender(), establish_min_send_bufsize(), findAndDeleteRoot(), handle_send_error(), HeartbeatAction(), load_policy(), main(), merge_files(), newNodeCommon(), nodeFromNodes(), noteRemoteHash(), process_input_buffer(), process_input_message(), r_dispatch_process_input(), r_dispatch_run(), r_init_config_msg(), r_init_confval(), r_init_create(), r_init_debug_getenv(), r_init_fail(), r_init_map_and_process_file(), r_init_parse_config(), r_io_accept_connection(), r_io_open_repo_data_file(), r_io_prepare_poll_fds(), r_io_record_fd(), r_io_send(), r_io_shutdown_client_fd(), r_link_do_deferred_write(), r_net_listen_on_address(), r_net_listen_on_wildcards(), r_net_setsockopt_v6only(), r_proto_activate_policy(), r_proto_begin_enumeration(), r_proto_bulk_import(), r_proto_check_exclude(), r_proto_continue_enumeration(), r_proto_deactivate_policy(), r_proto_dump_enums(), r_proto_expect_content(), r_proto_policy_complete(), r_proto_policy_update(), r_proto_start_write(), r_proto_start_write_checked(), r_sendq_face_send_queue_insert(), r_store_content_base(), r_store_content_from_accession(), r_store_content_read(), r_store_fatal(), r_store_final(), r_store_forget_content(), r_store_index_cleaner(), r_store_index_needs_cleaning(), r_store_init(), r_store_read_stable_point(), r_store_reindexing(), r_store_set_flatname(), r_store_trim(), r_store_write_stable_point(), r_sync_enumerate(), r_sync_local_store(), r_sync_notify_content(), r_sync_upcall_store(), start_ccnr(), SyncHandleSlice(), SyncInit(), SyncNoteFailed(), SyncNoteSimple(), SyncNoteSimple2(), SyncNoteSimple3(), SyncNoteUri(), SyncNoteUriBase(), SyncNotifyContent(), SyncRegisterInterests(), SyncRootLookupName(), SyncShutdown(), SyncStartCompareAction(), SyncStartHeartbeat(), SyncUpdateRoot(), and UpdateAction().

int ccnr_msg_level_from_string ( const char *  s  ) 

Definition at line 48 of file ccnr_msg.c.

Referenced by main(), and r_init_debug_getenv().


Variable Documentation

const char* ccnr_usage_message

CCNR Usage message.

Definition at line 173 of file ccnr_msg.c.

Referenced by main().


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