#include <map>#include <string>Go to the source code of this file.
Classes | |
| struct | dtn_bundle_id |
| struct | dtn_status_report |
| struct | dtn_bundle |
| struct | dtn_session_info |
Typedefs | |
| typedef map< unsigned int, dtn_handle_t > | HandleMap |
Functions | |
| int | dtn_open () |
| static dtn_handle_t | find_handle (int i) |
| void | dtn_close (int handle) |
| int | dtn_errno (int handle) |
| string | dtn_build_local_eid (int handle, const char *service_tag) |
| static int | build_reginfo (dtn_reg_info_t *reginfo, const string &endpoint, unsigned int flags, unsigned int expiration, bool init_passive, const string &script) |
| int | dtn_register (int handle, const string &endpoint, unsigned int flags, int expiration, bool init_passive, const string &script) |
| int | dtn_unregister (int handle, dtn_reg_id_t regid) |
| int | dtn_find_registration (int handle, const string &endpoint) |
| int | dtn_change_registration (int handle, dtn_reg_id_t regid, const string &endpoint, unsigned int action, int expiration, bool init_passive, const string &script) |
| int | dtn_bind (int handle, int regid) |
| int | dtn_unbind (int handle, int regid) |
| dtn_bundle_id * | dtn_send (int handle, int regid, const string &source, const string &dest, const string &replyto, unsigned int priority, unsigned int dopts, unsigned int expiration, unsigned int payload_location, const string &payload_data, const string &sequence_id="", const string &obsoletes_id="") |
| int | dtn_cancel (int handle, const dtn_bundle_id &id) |
| string | dtn_status_report_reason_to_str (unsigned int reason) |
| dtn_bundle * | dtn_recv (int handle, unsigned int payload_location, int timeout) |
| dtn_session_info * | dtn_session_update (int handle, int timeout) |
| int | dtn_poll_fd (int handle) |
| int | dtn_begin_poll (int handle, int timeout) |
| int | dtn_cancel_poll (int handle) |
Variables | |
| HandleMap | Handles |
| static unsigned int | HandleID = 1 |
| typedef map<unsigned int, dtn_handle_t> HandleMap |
Definition at line 22 of file dtn_api_wrap.cc.
| static int build_reginfo | ( | dtn_reg_info_t * | reginfo, | |
| const string & | endpoint, | |||
| unsigned int | flags, | |||
| unsigned int | expiration, | |||
| bool | init_passive, | |||
| const string & | script | |||
| ) | [static] |
Definition at line 85 of file dtn_api_wrap.cc.
References dtn_reg_info_t::endpoint, dtn_reg_info_t::expiration, dtn_reg_info_t::flags, dtn_reg_info_t::init_passive, dtn_reg_info_t::script, dtn_reg_info_t::script_len, dtn_reg_info_t::script_val, and dtn_endpoint_id_t::uri.
Referenced by _wrap_build_reginfo(), dtn_change_registration(), dtn_register(), and XS().
| int dtn_begin_poll | ( | int | handle, | |
| int | timeout | |||
| ) |
Definition at line 455 of file dtn_api_wrap.cc.
References dtn_begin_poll(), DTN_EINVAL, and find_handle().
| int dtn_bind | ( | int | handle, | |
| int | regid | |||
| ) |
Definition at line 180 of file dtn_api_wrap.cc.
References dtn_bind(), and find_handle().
| string dtn_build_local_eid | ( | int | handle, | |
| const char * | service_tag | |||
| ) |
Definition at line 72 of file dtn_api_wrap.cc.
References dtn_build_local_eid(), find_handle(), and dtn_endpoint_id_t::uri.
| int dtn_cancel | ( | int | handle, | |
| const dtn_bundle_id & | id | |||
| ) |
Definition at line 282 of file dtn_api_wrap.cc.
References dtn_bundle_id_t::creation_ts, dtn_cancel(), find_handle(), dtn_timestamp_t::secs, dtn_timestamp_t::seqno, dtn_bundle_id_t::source, and dtn_endpoint_id_t::uri.
| int dtn_cancel_poll | ( | int | handle | ) |
Definition at line 465 of file dtn_api_wrap.cc.
References dtn_cancel_poll(), DTN_EINVAL, and find_handle().
| int dtn_change_registration | ( | int | handle, | |
| dtn_reg_id_t | regid, | |||
| const string & | endpoint, | |||
| unsigned int | action, | |||
| int | expiration, | |||
| bool | init_passive, | |||
| const string & | script | |||
| ) |
Definition at line 160 of file dtn_api_wrap.cc.
References build_reginfo(), dtn_change_registration(), and find_handle().
| void dtn_close | ( | int | handle | ) |
Definition at line 54 of file dtn_api_wrap.cc.
References dtn_close(), and find_handle().
| int dtn_errno | ( | int | handle | ) |
Definition at line 63 of file dtn_api_wrap.cc.
References DTN_EINVAL, dtn_errno(), and find_handle().
| int dtn_find_registration | ( | int | handle, | |
| const string & | endpoint | |||
| ) |
Definition at line 140 of file dtn_api_wrap.cc.
References dtn_find_registration(), DTN_SUCCESS, find_handle(), regid, and dtn_endpoint_id_t::uri.
| int dtn_open | ( | ) |
Definition at line 29 of file dtn_api_wrap.cc.
References dtn_open(), DTN_SUCCESS, HandleID, and Handles.
| int dtn_poll_fd | ( | int | handle | ) |
Definition at line 445 of file dtn_api_wrap.cc.
References DTN_EINVAL, dtn_poll_fd(), and find_handle().
| dtn_bundle* dtn_recv | ( | int | handle, | |
| unsigned int | payload_location, | |||
| int | timeout | |||
| ) |
Definition at line 339 of file dtn_api_wrap.cc.
References dtn_bundle_status_report_t::ack_by_app_ts, dtn_status_report::ack_by_app_ts_secs, dtn_status_report::ack_by_app_ts_seqno, dtn_bundle_payload_t::buf, dtn_bundle_payload_t::buf_len, dtn_bundle_payload_t::buf_val, dtn_bundle_status_report_t::bundle_id, dtn_status_report::bundle_id, dtn_bundle_id::creation_secs, dtn_bundle::creation_secs, dtn_bundle_id::creation_seqno, dtn_bundle::creation_seqno, dtn_bundle_id_t::creation_ts, dtn_bundle_spec_t::creation_ts, dtn_bundle_status_report_t::custody_ts, dtn_status_report::custody_ts_secs, dtn_status_report::custody_ts_seqno, dtn_bundle_status_report_t::deletion_ts, dtn_status_report::deletion_ts_secs, dtn_status_report::deletion_ts_seqno, dtn_bundle_spec_t::delivery_regid, dtn_bundle::delivery_regid, dtn_bundle_status_report_t::delivery_ts, dtn_status_report::delivery_ts_secs, dtn_status_report::delivery_ts_seqno, dtn_bundle_spec_t::dest, dtn_bundle::dest, dtn_bundle_spec_t::dopts, dtn_bundle::dopts, DTN_EINVAL, DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, DTN_PAYLOAD_TEMP_FILE, dtn_recv(), dtn_set_errno(), DTN_SUCCESS, dtn_bundle_spec_t::expiration, dtn_bundle::expiration, dtn_bundle_payload_t::filename, dtn_bundle_payload_t::filename_len, dtn_bundle_payload_t::filename_val, find_handle(), dtn_bundle_status_report_t::flags, dtn_status_report::flags, dtn_bundle_status_report_t::forwarding_ts, dtn_status_report::forwarding_ts_secs, dtn_status_report::forwarding_ts_seqno, dtn_bundle::payload, dtn_bundle_spec_t::priority, dtn_bundle::priority, dtn_bundle_status_report_t::reason, dtn_status_report::reason, dtn_bundle_status_report_t::receipt_ts, dtn_status_report::receipt_ts_secs, dtn_status_report::receipt_ts_seqno, dtn_bundle_spec_t::replyto, dtn_bundle::replyto, dtn_timestamp_t::secs, dtn_timestamp_t::seqno, dtn_bundle_id_t::source, dtn_bundle_id::source, dtn_bundle_spec_t::source, dtn_bundle::source, dtn_bundle::status_report, dtn_bundle_payload_t::status_report, and dtn_endpoint_id_t::uri.
| int dtn_register | ( | int | handle, | |
| const string & | endpoint, | |||
| unsigned int | flags, | |||
| int | expiration, | |||
| bool | init_passive, | |||
| const string & | script | |||
| ) |
Definition at line 106 of file dtn_api_wrap.cc.
References build_reginfo(), dtn_register(), DTN_SUCCESS, find_handle(), and regid.
| dtn_bundle_id* dtn_send | ( | int | handle, | |
| int | regid, | |||
| const string & | source, | |||
| const string & | dest, | |||
| const string & | replyto, | |||
| unsigned int | priority, | |||
| unsigned int | dopts, | |||
| unsigned int | expiration, | |||
| unsigned int | payload_location, | |||
| const string & | payload_data, | |||
| const string & | sequence_id = "", |
|||
| const string & | obsoletes_id = "" | |||
| ) |
Definition at line 205 of file dtn_api_wrap.cc.
References dtn_bundle_payload_t::buf, dtn_bundle_payload_t::buf_len, dtn_bundle_payload_t::buf_val, dtn_bundle_id::creation_secs, dtn_bundle_id::creation_seqno, dtn_sequence_id_t::data, dtn_sequence_id_t::data_len, dtn_sequence_id_t::data_val, dtn_bundle_spec_t::dest, dtn_bundle_spec_t::dopts, DTN_EINVAL, DTN_PAYLOAD_FILE, DTN_PAYLOAD_MEM, DTN_PAYLOAD_TEMP_FILE, dtn_send(), dtn_set_errno(), DTN_SUCCESS, dtn_bundle_spec_t::expiration, dtn_bundle_payload_t::filename, dtn_bundle_payload_t::filename_len, dtn_bundle_payload_t::filename_val, find_handle(), dtn_bundle_payload_t::location, dtn_bundle_spec_t::obsoletes_id, obsoletes_id, dtn_bundle_spec_t::priority, dtn_bundle_spec_t::replyto, dtn_bundle_spec_t::sequence_id, sequence_id, dtn_bundle_id::source, dtn_bundle_spec_t::source, and dtn_endpoint_id_t::uri.
| dtn_session_info* dtn_session_update | ( | int | handle, | |
| int | timeout | |||
| ) |
Definition at line 422 of file dtn_api_wrap.cc.
References dtn_session_update(), DTN_SUCCESS, find_handle(), dtn_session_info::session, dtn_session_info::status, and dtn_endpoint_id_t::uri.
| string dtn_status_report_reason_to_str | ( | unsigned int | reason | ) |
Definition at line 315 of file dtn_api_wrap.cc.
References dtn_status_report_reason_to_str().
| int dtn_unbind | ( | int | handle, | |
| int | regid | |||
| ) |
Definition at line 189 of file dtn_api_wrap.cc.
References dtn_unbind(), and find_handle().
| int dtn_unregister | ( | int | handle, | |
| dtn_reg_id_t | regid | |||
| ) |
Definition at line 130 of file dtn_api_wrap.cc.
References dtn_unregister(), and find_handle().
| static dtn_handle_t find_handle | ( | int | i | ) | [static] |
Definition at line 44 of file dtn_api_wrap.cc.
References Handles.
Referenced by _wrap_find_handle(), dtn_begin_poll(), dtn_bind(), dtn_build_local_eid(), dtn_cancel(), dtn_cancel_poll(), dtn_change_registration(), dtn_close(), dtn_errno(), dtn_find_registration(), dtn_poll_fd(), dtn_recv(), dtn_register(), dtn_send(), dtn_session_update(), dtn_unbind(), dtn_unregister(), and XS().
unsigned int HandleID = 1 [static] |
Definition at line 25 of file dtn_api_wrap.cc.
Referenced by _wrap_HandleID_get(), _wrap_HandleID_set(), dtn_open(), Swig_var_HandleID_get(), and Swig_var_HandleID_set().
Definition at line 24 of file dtn_api_wrap.cc.
Referenced by _wrap_Handles_get(), _wrap_Handles_set(), dtn_open(), find_handle(), Swig_var_Handles_get(), and Swig_var_Handles_set().
1.6.3