mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-12 11:40:39 +03:00
hashkey.[ch] files restored (now prefixed with coap_) LWIP and Contiki builds now include these files block.[ch]: New function coap_add_data_blocked_response() to simplify GET responses and handle adding in BLOCK2 options as appropriate. Needs coap_hash() to generate ETag option. net.c: Determine if Block2 is in use, and add to coap_add_observer(). resource.[ch]: Include Block2 request in coap_add_observer(). subscribe.h: Include Block2 definition in coap_subscriber_t for using during observe responses. pdu.h: Update comment. coap-client.c: No longer causes duplicate calls to coap_show_pdu() (one in library, one in coap-client for the same PDU). If a block'ed response received and observing, now observing continues. (Fixes #166). Send Observe Cancel with Block2 option if -b defined coap-server.c: Replaced all option setting, data addition etc. with new coap_add_data_blocked_response() function in the GET handlers. (Fixes #246 Issue 2). Support PUT with BLOCK1. (Fixes #246 Issue 1). Add in -N option to send observe responses as non-confirmable. Handle small wait_ms values correctly (after being decremented) for testing whether observe should be triggered or not. Refresh time every second by making COAP_RESOURCE_CHECK_TIME 1 Manuals: Add in new function coap_add_data_blocked_response() Update coap_observe with coap_delete_observer(s) functions Correct example typo and use new function in hnd_get_time(). Add in -N option to coap-server(5) Be more specific about COAP_RESOURCE_FLAGS_NOTIFY_NON and COAP_RESOURCE_FLAGS_NOTIFY_CON usage for observe. Files: Makefile.am Makefile.libcoap examples/client.c examples/coap-server.c examples/lwip/Makefile include/coap/block.h include/coap/coap_hashkey.h include/coap/pdu.h include/coap/resource.h include/coap/subscribe.h libcoap-2.map libcoap-2.sym man/Makefile.am man/coap-server.txt.in man/coap_handler.txt.in man/coap_observe.txt.in man/coap_pdu_setup.txt.in man/coap_resource.txt.in src/block.c src/coap_hashkey.c src/net.c src/resource.c
195 lines
4.3 KiB
Plaintext
195 lines
4.3 KiB
Plaintext
VER_2 {
|
|
global:
|
|
coap_add_attr;
|
|
coap_add_block;
|
|
coap_add_data;
|
|
coap_add_data_after;
|
|
coap_add_data_blocked_response;
|
|
coap_add_observer;
|
|
coap_add_option;
|
|
coap_add_option_later;
|
|
coap_add_optlist_pdu;
|
|
coap_add_resource;
|
|
coap_address_equals;
|
|
coap_add_token;
|
|
coap_adjust_basetime;
|
|
coap_calc_timeout;
|
|
coap_cancel_all_messages;
|
|
coap_cancel_session_messages;
|
|
coap_can_exit;
|
|
coap_check_notify;
|
|
coap_check_option;
|
|
coap_cleanup;
|
|
coap_clear_event_handler;
|
|
coap_clock_init;
|
|
coap_clone_uri;
|
|
coap_context_set_keepalive;
|
|
coap_context_set_pki;
|
|
coap_context_set_pki_root_cas;
|
|
coap_context_set_psk;
|
|
coap_debug_send_packet;
|
|
coap_debug_set_packet_loss;
|
|
coap_decode_var_bytes;
|
|
coap_delete_all;
|
|
coap_delete_all_resources;
|
|
coap_delete_attr;
|
|
coap_delete_node;
|
|
coap_delete_observer;
|
|
coap_delete_observers;
|
|
coap_delete_optlist;
|
|
coap_delete_pdu;
|
|
coap_delete_resource;
|
|
coap_delete_str_const;
|
|
coap_delete_string;
|
|
coap_dispatch;
|
|
coap_dtls_get_log_level;
|
|
coap_dtls_is_supported;
|
|
coap_dtls_set_log_level;
|
|
coap_encode_var_safe;
|
|
coap_endpoint_get_session;
|
|
coap_endpoint_set_default_mtu;
|
|
coap_endpoint_str;
|
|
coap_find_async;
|
|
coap_find_attr;
|
|
coap_find_observer;
|
|
coap_find_transaction;
|
|
coap_fls;
|
|
coap_flsll;
|
|
coap_free_async;
|
|
coap_free_context;
|
|
coap_free_endpoint;
|
|
coap_free_type;
|
|
coap_get_app_data;
|
|
coap_get_block;
|
|
coap_get_data;
|
|
coap_get_log_level;
|
|
coap_get_query;
|
|
coap_get_resource_from_uri_path;
|
|
coap_get_tls_library_version;
|
|
coap_get_uri_path;
|
|
coap_handle_dgram;
|
|
coap_handle_event;
|
|
coap_handle_failed_notify;
|
|
coap_hash_impl;
|
|
coap_insert_node;
|
|
coap_insert_optlist;
|
|
coap_is_mcast;
|
|
coap_log_impl;
|
|
coap_malloc_endpoint;
|
|
coap_malloc_type;
|
|
coap_memory_init;
|
|
coap_mfree_endpoint;
|
|
coap_network_read;
|
|
coap_network_send;
|
|
coap_new_client_session;
|
|
coap_new_client_session_pki;
|
|
coap_new_client_session_psk;
|
|
coap_new_context;
|
|
coap_new_endpoint;
|
|
coap_new_error_response;
|
|
coap_new_node;
|
|
coap_new_optlist;
|
|
coap_new_pdu;
|
|
coap_new_server_session;
|
|
coap_new_str_const;
|
|
coap_new_string;
|
|
coap_new_uri;
|
|
coap_opt_block_num;
|
|
coap_opt_delta;
|
|
coap_opt_encode;
|
|
coap_opt_encode_size;
|
|
coap_option_check_critical;
|
|
coap_option_filter_get;
|
|
coap_option_filter_set;
|
|
coap_option_filter_unset;
|
|
coap_option_iterator_init;
|
|
coap_option_next;
|
|
coap_opt_length;
|
|
coap_opt_parse;
|
|
coap_opt_setheader;
|
|
coap_opt_size;
|
|
coap_opt_value;
|
|
coap_package_name;
|
|
coap_package_version;
|
|
coap_packet_get_memmapped;
|
|
coap_packet_set_addr;
|
|
coap_pdu_clear;
|
|
coap_pdu_encode_header;
|
|
coap_pdu_init;
|
|
coap_pdu_parse;
|
|
coap_pdu_parse_header;
|
|
coap_pdu_parse_header_size;
|
|
coap_pdu_parse_opt;
|
|
coap_pdu_parse_size;
|
|
coap_pdu_resize;
|
|
coap_peek_next;
|
|
coap_pop_next;
|
|
coap_print_addr;
|
|
coap_print_link;
|
|
coap_print_wellknown;
|
|
coap_read;
|
|
coap_register_async;
|
|
coap_register_event_handler;
|
|
coap_register_handler;
|
|
coap_remove_async;
|
|
coap_remove_from_queue;
|
|
coap_resource_init;
|
|
coap_resource_notify_observers;
|
|
coap_resource_set_dirty;
|
|
coap_resource_unknown_init;
|
|
coap_response_phrase;
|
|
coap_retransmit;
|
|
coap_run_once;
|
|
coap_send;
|
|
coap_send_ack;
|
|
coap_send_error;
|
|
coap_send_message_type;
|
|
coap_session_connected;
|
|
coap_session_delay_pdu;
|
|
coap_session_disconnected;
|
|
coap_session_free;
|
|
coap_session_get_ack_random_factor;
|
|
coap_session_get_ack_timeout;
|
|
coap_session_get_app_data;
|
|
coap_session_get_by_peer;
|
|
coap_session_get_max_transmit;
|
|
coap_session_max_pdu_size;
|
|
coap_session_reference;
|
|
coap_session_release;
|
|
coap_session_send;
|
|
coap_session_send_csm;
|
|
coap_session_send_pdu;
|
|
coap_session_send_ping;
|
|
coap_session_set_ack_random_factor;
|
|
coap_session_set_ack_timeout;
|
|
coap_session_set_app_data;
|
|
coap_session_set_max_retransmit;
|
|
coap_session_set_mtu;
|
|
coap_session_str;
|
|
coap_session_write;
|
|
coap_set_app_data;
|
|
coap_set_event_handler;
|
|
coap_set_log_handler;
|
|
coap_set_log_level;
|
|
coap_set_show_pdu_output;
|
|
coap_show_pdu;
|
|
coap_socket_strerror;
|
|
coap_split_path;
|
|
coap_split_query;
|
|
coap_split_uri;
|
|
coap_startup;
|
|
coap_subscription_init;
|
|
coap_ticks;
|
|
coap_ticks_from_rt_us;
|
|
coap_ticks_to_rt;
|
|
coap_ticks_to_rt_us;
|
|
coap_tls_is_supported;
|
|
coap_touch_observer;
|
|
coap_wait_ack;
|
|
coap_wellknown_response;
|
|
coap_write;
|
|
coap_write_block_opt;
|
|
local:
|
|
*;
|
|
};
|