ccn_charbuf.c File Reference

Support expandable buffer for counted sequences of arbitrary bytes. More...

Go to the source code of this file.

Functions

struct ccn_charbufccn_charbuf_create (void)
void ccn_charbuf_destroy (struct ccn_charbuf **cbp)
unsigned char * ccn_charbuf_reserve (struct ccn_charbuf *c, size_t n)
void ccn_charbuf_reset (struct ccn_charbuf *c)
int ccn_charbuf_append (struct ccn_charbuf *c, const void *p, size_t n)
int ccn_charbuf_append_value (struct ccn_charbuf *c, unsigned val, unsigned n)
int ccn_charbuf_append_charbuf (struct ccn_charbuf *c, const struct ccn_charbuf *in)
int ccn_charbuf_append_string (struct ccn_charbuf *c, const char *s)
int ccn_charbuf_putf (struct ccn_charbuf *c, const char *fmt,...)
int ccn_charbuf_append_datetime (struct ccn_charbuf *c, time_t secs, int nsecs)
char * ccn_charbuf_as_string (struct ccn_charbuf *c)

Detailed Description

Support expandable buffer for counted sequences of arbitrary bytes.

Part of the CCNx C Library.

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

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition in file ccn_charbuf.c.


Function Documentation

int ccn_charbuf_append ( struct ccn_charbuf c,
const void *  p,
size_t  n 
)
int ccn_charbuf_append_charbuf ( struct ccn_charbuf c,
const struct ccn_charbuf in 
)
int ccn_charbuf_append_datetime ( struct ccn_charbuf c,
time_t  secs,
int  nsecs 
)

Definition at line 150 of file ccn_charbuf.c.

int ccn_charbuf_append_string ( struct ccn_charbuf c,
const char *  s 
)
int ccn_charbuf_append_value ( struct ccn_charbuf c,
unsigned  val,
unsigned  n 
)
char* ccn_charbuf_as_string ( struct ccn_charbuf c  ) 
struct ccn_charbuf* ccn_charbuf_create ( void   )  [read]

Definition at line 28 of file ccn_charbuf.c.

Referenced by age_forwarding(), ccn_charbuf_duplicate(), ccn_chk_signing_params(), ccn_create(), ccn_decoder_create(), ccn_decoder_decode(), ccn_encode_ContentObject(), ccn_encoder_create(), ccn_extend_dict(), ccn_face_instance_parse(), ccn_fetch_open(), ccn_forwarding_entry_parse(), ccn_get_header(), ccn_header_parse(), ccn_initiate_ccndid_fetch(), ccn_initiate_key_fetch(), ccn_initiate_prefix_reg(), ccn_load_default_key(), ccn_load_private_key(), ccn_name_from_uri(), ccn_name_next_sibling(), ccn_process_input(), ccn_put(), ccn_resolve_version(), ccn_seqw_create(), ccn_sign_content(), ccnbx(), ccnd_answer_req(), ccnd_debug_ccnb(), ccnd_init_internal_keystore(), ccnd_init_service_ccnb(), ccnd_listen_on(), ccnd_msg(), ccnd_parse_uri_list(), ccnd_reg_ccnx_ccndid(), ccnd_reg_prefix(), ccnd_reg_uri(), ccnd_send(), ccnd_start_notice(), ccnd_stats_http_set_debug(), ccnd_uri_listen(), charbuf_obtain(), collect_faces_html(), collect_faces_xml(), collect_forwarding_html(), collect_forwarding_xml(), collect_stats_html(), collect_stats_xml(), create_face(), create_passive_templ(), encode_message(), express_bulkdata_interest(), express_my_interest(), find_first_match_candidate(), get_ccndid(), handle_ccndid_response(), handle_key(), incoming_content(), incoming_interest(), init_all_chars_percent_encoded(), initialize_global_data(), local_scope_rm_template(), main(), make_connection(), make_data_template(), make_template(), NewElem(), next_child_at_level(), pe_next_usec(), post_face_notice(), prefix_face_list_item_create(), process_command_tokens(), process_fd(), process_input(), process_prefix_face_list_item(), register_unregister_prefix(), resolve_templ(), sequenced_name(), seqw_next_cob(), and stuff_link_check().

void ccn_charbuf_destroy ( struct ccn_charbuf **  cbp  ) 

Definition at line 36 of file ccn_charbuf.c.

Referenced by age_forwarding(), ask_more(), ccn_check_pub_arrival(), ccn_chk_signing_params(), ccn_decoder_decode(), ccn_decoder_destroy(), ccn_destroy(), ccn_destroy_interest(), ccn_disconnect(), ccn_encode_ContentObject(), ccn_encoder_destroy(), ccn_extend_dict(), ccn_face_instance_destroy(), ccn_face_instance_parse(), ccn_fetch_close(), ccn_fetch_open(), ccn_forwarding_entry_destroy(), ccn_forwarding_entry_parse(), ccn_get_header(), ccn_header_destroy(), ccn_initiate_ccndid_fetch(), ccn_initiate_key_fetch(), ccn_initiate_prefix_reg(), ccn_load_default_key(), ccn_load_private_key(), ccn_name_from_uri(), ccn_name_next_sibling(), ccn_resolve_version(), ccn_seqw_create(), ccn_seqw_write(), ccn_sign_content(), ccnbx(), ccnd_answer_req(), ccnd_debug_ccnb(), ccnd_destroy(), ccnd_init_internal_keystore(), ccnd_init_service_ccnb(), ccnd_internal_client_stop(), ccnd_listen_on(), ccnd_msg(), ccnd_parse_uri_list(), ccnd_reg_ccnx_ccndid(), ccnd_reg_prefix(), ccnd_reg_uri(), ccnd_start_notice(), ccnd_stats_handle_http_connection(), ccnd_stats_http_set_debug(), ccnd_uri_listen(), charbuf_release(), collect_faces_html(), collect_faces_xml(), collect_forwarding_html(), collect_forwarding_xml(), create_face(), do_deferred_write(), encode_message(), express_bulkdata_interest(), express_my_interest(), fill_holes(), find_first_match_candidate(), get_ccndid(), handle_key(), handle_send_error(), incoming_content(), init_all_chars_percent_encoded(), main(), NeedSegment(), NewElem(), next_child_at_level(), pe_next_usec(), post_face_notice(), prefix_face_list_destroy(), prefix_face_list_item_create(), process_fd(), process_internal_client_buffer(), process_prefix_face_list_item(), register_unregister_prefix(), resolve_templ(), sequenced_name(), seqw_incoming_interest(), seqw_next_cob(), shutdown_client_fd(), and stuff_link_check().

int ccn_charbuf_putf ( struct ccn_charbuf c,
const char *  fmt,
  ... 
)
unsigned char* ccn_charbuf_reserve ( struct ccn_charbuf c,
size_t  n 
)
void ccn_charbuf_reset ( struct ccn_charbuf c  ) 

Definition at line 71 of file ccn_charbuf.c.

Referenced by ccn_extend_dict(), ccn_get_header(), and main().

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