Go to the source code of this file.
Defines | |
#define | DTN_SUCCESS 0 |
DTN API error codes. | |
#define | DTN_ERRBASE 128 |
#define | DTN_EINVAL (DTN_ERRBASE+1) |
#define | DTN_EXDR (DTN_ERRBASE+2) |
#define | DTN_ECOMM (DTN_ERRBASE+3) |
#define | DTN_ECONNECT (DTN_ERRBASE+4) |
#define | DTN_ETIMEOUT (DTN_ERRBASE+5) |
#define | DTN_ESIZE (DTN_ERRBASE+6) |
#define | DTN_ENOTFOUND (DTN_ERRBASE+7) |
#define | DTN_EINTERNAL (DTN_ERRBASE+8) |
#define | DTN_EINPOLL (DTN_ERRBASE+9) |
#define | DTN_EBUSY (DTN_ERRBASE+10) |
#define | DTN_EVERSION (DTN_ERRBASE+11) |
#define | DTN_EMSGTYPE (DTN_ERRBASE+12) |
#define | DTN_ENOSPACE (DTN_ERRBASE+13) |
#define | DTN_ERRMAX 255 |
Functions | |
char * | dtn_strerror (int err) |
Get a string value associated with the dtn error code. |
#define DTN_EBUSY (DTN_ERRBASE+10) |
Definition at line 38 of file dtn_errno.h.
Referenced by dtn_strerror(), dtn::APIClient::handle_bind(), and dtn::APIClient::handle_unregister().
#define DTN_ECOMM (DTN_ERRBASE+3) |
Definition at line 31 of file dtn_errno.h.
Referenced by dtn_strerror(), dtnipc_close(), dtnipc_open(), dtnipc_recv(), dtnipc_send(), dtn::APIClient::handle_begin_poll(), dtn::APIClient::handle_unexpected_data(), and dtn::APIClient::run().
#define DTN_ECONNECT (DTN_ERRBASE+4) |
Definition at line 32 of file dtn_errno.h.
Referenced by dtn_strerror().
#define DTN_EINPOLL (DTN_ERRBASE+9) |
Definition at line 37 of file dtn_errno.h.
Referenced by dtn_begin_poll(), dtn_bind(), dtn_build_local_eid(), dtn_cancel(), dtn_change_registration(), dtn_find_registration(), dtn_register(), dtn_send(), dtn_strerror(), dtn_unbind(), and dtn_unregister().
#define DTN_EINTERNAL (DTN_ERRBASE+8) |
Definition at line 36 of file dtn_errno.h.
Referenced by dtn_change_registration(), dtn_open(), dtn_strerror(), dtn::APIClient::handle_recv(), dtn::APIClient::handle_send(), and dtn::APIClient::wait_for_notify().
#define DTN_EINVAL (DTN_ERRBASE+1) |
Definition at line 29 of file dtn_errno.h.
Referenced by dtn_begin_poll(), dtn_build_local_eid(), dtn_cancel_poll(), dtn_errno(), dtn_parse_eid_string(), dtn_poll_fd(), dtn_recv(), dtn_send(), dtn_strerror(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_local_eid(), dtn::APIClient::handle_recv(), dtn::APIClient::handle_register(), dtn::APIClient::handle_send(), dtn::APIClient::handle_unregister(), and dtn::APIClient::wait_for_notify().
#define DTN_EMSGTYPE (DTN_ERRBASE+12) |
Definition at line 40 of file dtn_errno.h.
Referenced by dtn_strerror(), and dtn::APIClient::run().
#define DTN_ENOSPACE (DTN_ERRBASE+13) |
Definition at line 41 of file dtn_errno.h.
Referenced by dtn_strerror(), dtn::APIClient::handle_send(), and dtntunnel::TCPTunnel::Connection::run().
#define DTN_ENOTFOUND (DTN_ERRBASE+7) |
Definition at line 35 of file dtn_errno.h.
Referenced by dtn_strerror(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_cancel(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_unbind(), dtn::APIClient::handle_unregister(), dtntunnel::DTNTunnel::init_registration(), main(), and make_registration().
#define DTN_ERRBASE 128 |
Definition at line 28 of file dtn_errno.h.
Referenced by dtn::APIClient::send_response().
#define DTN_ERRMAX 255 |
Definition at line 42 of file dtn_errno.h.
Referenced by dtn::APIClient::send_response().
#define DTN_ESIZE (DTN_ERRBASE+6) |
Definition at line 34 of file dtn_errno.h.
Referenced by dtn_parse_eid_string(), dtn_set_payload(), dtn_strerror(), and fill_payload().
#define DTN_ETIMEOUT (DTN_ERRBASE+5) |
Definition at line 33 of file dtn_errno.h.
Referenced by dtn_cancel_poll(), dtn_strerror(), TcaController::eat_bundles(), main(), and dtn::APIClient::wait_for_notify().
#define DTN_EVERSION (DTN_ERRBASE+11) |
Definition at line 39 of file dtn_errno.h.
Referenced by dtn_strerror(), and dtnipc_open().
#define DTN_EXDR (DTN_ERRBASE+2) |
Definition at line 30 of file dtn_errno.h.
Referenced by dtn_begin_poll(), dtn_bind(), dtn_build_local_eid(), dtn_cancel(), dtn_find_registration(), dtn_recv(), dtn_register(), dtn_send(), dtn_session_update(), dtn_strerror(), dtn_unbind(), dtn_unregister(), dtn::APIClient::handle_begin_poll(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_cancel(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_local_eid(), dtn::APIClient::handle_recv(), dtn::APIClient::handle_register(), dtn::APIClient::handle_send(), dtn::APIClient::handle_session_update(), dtn::APIClient::handle_unbind(), and dtn::APIClient::handle_unregister().
#define DTN_SUCCESS 0 |
DTN API error codes.
Definition at line 27 of file dtn_errno.h.
Referenced by dtn_build_local_eid(), dtn_cancel_poll(), dtn_close(), dtn_find_registration(), dtn_open(), dtn_recv(), dtn_register(), dtn_send(), dtn_session_update(), dtn_strerror(), dtn_unregister(), dtnipc_send_recv(), DTNSessionUpdateCommand::exec(), DTNRecvCommand::exec(), DTNUnbindCommand::exec(), DTNBindCommand::exec(), DTNSendCommand::exec(), DTNUnregisterCommand::exec(), DTNRegisterCommand::exec(), DTNOpenCommand::exec(), dtn::APIClient::handle_begin_poll(), dtn::APIClient::handle_bind(), dtn::APIClient::handle_cancel(), dtn::APIClient::handle_cancel_poll(), dtn::APIClient::handle_find_registration(), dtn::APIClient::handle_local_eid(), dtn::APIClient::handle_recv(), dtn::APIClient::handle_register(), dtn::APIClient::handle_send(), dtn::APIClient::handle_session_update(), dtn::APIClient::handle_unbind(), dtn::APIClient::handle_unregister(), TcaController::init(), dtntunnel::DTNTunnel::init_registration(), main(), make_registration(), reader_thread(), dtntunnel::UDPTunnel::Listener::run(), dtntunnel::TCPTunnel::Connection::run(), dtntunnel::DTNTunnel::send_bundle(), dtn::APIClient::send_response(), and to_bundles().
char* dtn_strerror | ( | int | err | ) |
Get a string value associated with the dtn error code.
Definition at line 22 of file dtn_errno.c.
References buf, DTN_EBUSY, DTN_ECOMM, DTN_ECONNECT, DTN_EINPOLL, DTN_EINTERNAL, DTN_EINVAL, DTN_EMSGTYPE, DTN_ENOSPACE, DTN_ENOTFOUND, DTN_ESIZE, DTN_ETIMEOUT, DTN_EVERSION, DTN_EXDR, and DTN_SUCCESS.
Referenced by _wrap_dtn_strerror(), TcaController::dtn_reg(), TcaController::eat_bundles(), DTNCancelPollCommand::exec(), DTNBeginPollCommand::exec(), DTNPollChannelCommand::exec(), DTNSessionUpdateCommand::exec(), DTNRecvCommand::exec(), DTNUnbindCommand::exec(), DTNBindCommand::exec(), DTNSendCommand::exec(), DTNUnregisterCommand::exec(), DTNRegisterCommand::exec(), DTNOpenCommand::exec(), from_bundles(), TcaController::init(), dtntunnel::DTNTunnel::init_registration(), dtntunnel::DTNTunnel::main(), main(), make_registration(), reader_thread(), dtntunnel::TCPTunnel::Connection::run(), TcaController::send_bundle(), dtntunnel::DTNTunnel::send_bundle(), dtn::APIClient::send_response(), to_bundles(), and XS().