Kannel: Open Source WAP and SMS gateway
svn-r5336
|
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include "gwlib/gwlib.h"
#include "gwlib/http.h"
#include "gwlib/xmlrpc.h"
Go to the source code of this file.
Macros | |
#define | MAX_THREADS 1024 |
#define | MAX_IN_QUEUE 128 |
Functions | |
static void | start_request (HTTPCaller *caller, List *reqh, long i) |
static int | receive_reply (HTTPCaller *caller) |
static void | client_thread (void *arg) |
static void | help (void) |
int | main (int argc, char **argv) |
Variables | |
static Counter * | counter = NULL |
static long | max_requests = 1 |
static Octstr * | auth_username = NULL |
static Octstr * | auth_password = NULL |
static Octstr * | ssl_client_certkey_file = NULL |
static Octstr * | extra_headers = NULL |
static Octstr * | content_file = NULL |
static Octstr * | url = NULL |
static int | file = 0 |
static XMLRPCDocument * | msg |
#define MAX_IN_QUEUE 128 |
Definition at line 74 of file test_xmlrpc.c.
Referenced by client_thread().
#define MAX_THREADS 1024 |
Definition at line 73 of file test_xmlrpc.c.
Referenced by main().
|
static |
Definition at line 188 of file test_xmlrpc.c.
References auth_password, auth_username, caller, counter, counter_increase(), gwlist_create, gwthread_self(), gwthread_sleep(), http_add_basic_auth(), http_caller_destroy(), http_header_add(), info(), MAX_IN_QUEUE, max_requests, receive_reply(), and start_request().
Referenced by main().
|
static |
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 269 of file test_xmlrpc.c.
References auth_password, auth_username, client_thread(), content_file, counter, counter_create(), counter_destroy(), error(), extra_headers, file, getopt(), gwlib_init(), gwlib_shutdown(), gwlist_append(), gwlist_create, gwlist_destroy(), gwthread_create, gwthread_join(), help(), http_caller_create(), http_use_proxy(), info(), log_set_output_level(), max_requests, MAX_THREADS, msg, octstr_create, octstr_destroy(), octstr_destroy_item(), octstr_get_cstr, octstr_print(), octstr_read_file(), optarg, optind, panic, proxy_password, proxy_port, proxy_ssl, proxy_username, ssl, ssl_client_certkey_file, start, threads, url, XMLRPC_COMPILE_OK, xmlrpc_destroy_call, xmlrpc_parse_call, xmlrpc_parse_error(), xmlrpc_parse_status(), and xmlrpc_print_call.
|
static |
Definition at line 113 of file test_xmlrpc.c.
References caller, debug(), error(), http_destroy_headers(), http_receive_result, octstr_destroy(), octstr_get_cstr, XMLRPC_COMPILE_OK, xmlrpc_get_faultcode(), xmlrpc_get_faultstring(), xmlrpc_is_fault(), xmlrpc_parse_error(), xmlrpc_parse_response, and xmlrpc_parse_status().
Referenced by client_thread().
|
static |
Definition at line 89 of file test_xmlrpc.c.
References caller, debug(), info(), msg, url, and xmlrpc_send_call.
Referenced by client_thread().
|
static |
Definition at line 80 of file test_xmlrpc.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 79 of file test_xmlrpc.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 83 of file test_xmlrpc.c.
Referenced by main().
|
static |
Definition at line 76 of file test_xmlrpc.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 82 of file test_xmlrpc.c.
Referenced by main().
|
static |
Definition at line 85 of file test_xmlrpc.c.
Referenced by main().
|
static |
Definition at line 77 of file test_xmlrpc.c.
Referenced by client_thread(), and main().
|
static |
Definition at line 86 of file test_xmlrpc.c.
Referenced by at2_pdu_decode(), at2_pdu_encode(), at2_send_messages(), at2_send_one_message(), at2_shutdown_cb(), at2_wait_modem_command(), badusage(), bb_alog_sms(), bb_remove_message(), bearerbox_to_smpp(), bearerbox_to_smsbox(), bearerbox_to_sql(), boxc_receiver(), boxc_route_msg_to_smsc(), boxc_sender(), boxc_sent_pop(), brunet_parse_reply(), brunet_receive_sms(), cgw_handle_op(), cgw_open_send_connection(), cgw_send_loop(), cgw_sender(), cgw_shutdown_cb(), charset_processing(), check_multipart(), cimd2_accept_delivery_report_message(), cimd2_receive_msg(), cimd2_shutdown_cb(), cimd2_submit_msg(), cimd_receive_msg(), cimd_submit_msg(), clickatell_parse_reply(), cmp_route(), concat_handling_check_and_handle(), concat_handling_clear_old_parts(), concat_msgids(), convert_charset(), create_dlr_from_msg(), data_sm_to_msg(), delayed_http_reply(), deliver_sms_to_queue(), deliver_to_bearerbox(), deliver_to_bearerbox_real(), destroy_concatMsg(), dispatch(), dispatch_datagram(), dispatch_into_queue(), dlr_add(), dlr_find(), dlr_spool_add(), dlr_spool_get(), do_dump(), dump(), dump_pdu(), emi2_do_send(), emi2_sender(), emi_receive_msg(), empty_msg_lists(), extract_msgdata_part_by_coding(), fake_listener(), fields_to_dcs(), fill_message(), find_translation(), generate_smppid(), generic_parse_reply(), generic_receive_sms(), get_matching_translations(), get_pattern(), get_receiver(), handle_mo_dcs(), handle_operation(), handle_pdu(), handle_split(), heartbeat_thread(), http_queue_thread(), httpsmsc_send(), httpsmsc_send_cb(), httpsmsc_sender(), identify_to_bearerbox(), io_thread(), kannel_parse_reply(), kannel_receive_sms(), main(), main_connection_loop(), Message(), msg_cb(), msg_create_real(), msg_destroy(), msg_destroy_item(), msg_dump(), msg_duplicate(), msg_pack(), msg_to_bb(), msg_to_cgwop(), msg_to_emimsg(), msg_to_pdu(), msg_type(), msg_unpack_real(), obey_request(), obey_request_thread(), ois_adjust_additional_information(), ois_adjust_data_coding_scheme(), ois_adjust_destination_address(), ois_adjust_originating_address(), ois_adjust_sm_text(), ois_append_data_coding_scheme(), ois_append_msisdn(), ois_append_sm_text(), ois_append_submission_options(), ois_append_to_list(), ois_decode_deliver_sm_invoke(), ois_delete_queue(), ois_deliver_sm_invoke(), ois_encode_submit_sm_invoke(), ois_receive_msg(), ois_submit_msg(), ois_submit_sm_invoke(), oisd_accept_delivery_report_message(), oisd_accept_message(), oisd_handle_request(), oisd_receive_msg(), oisd_shutdown_cb(), oisd_submit_msg(), open_send_connection(), ota_pack_message(), ota_tokenize_bookmarks(), ota_tokenize_settings(), pack_ip_datagram(), pack_sms_datagram(), packet_encode_message(), parse_msg_to_rawmessage(), parse_rawmessage_to_msg(), pdu_to_msg(), print_data(), print_msg(), randomize(), read_from_bearerbox(), read_from_bearerbox_real(), read_from_box(), read_messages_from_bearerbox(), read_msg(), reconnect(), remember_receiver(), retry_consumer_thread(), route_incoming_to_boxc(), route_incoming_to_smsc(), route_msg(), run_batch(), run_connects(), run_requests(), run_smsbox(), sema_msg_free(), sema_msg_new(), sema_msglist_pop(), sema_receive_msg(), sema_submit_msg(), send_message(), send_messages(), send_msg_cb(), send_pdu(), send_udp(), service_router(), shutdown_cb(), smpp_msg_create(), smpp_msg_destroy(), sms_msgdata_len(), sms_router(), sms_send(), sms_swap(), sms_to_client(), sms_to_smsboxes(), smsbox_req_handle(), smsbox_req_sendota(), smsbox_sendota_post(), smsbox_thread(), smsbox_to_bearerbox(), smsbox_xmlrpc_post(), smsc2_rout(), smscconn_send(), smscconn_usable(), smscenter_receive_msg(), smscenter_submit_msg(), soap_bouyg_content_attribute(), soap_bouyg_validity_attribute(), soap_client_init_query(), soap_convert_token(), soap_format_xml(), soap_listener(), soap_mobitai_content_attribute(), soap_mobitai_date_attribute(), soap_mobitai_validity_date_attribute(), soap_msgdata_attribute(), soap_msgdata_deps(), soap_msgtype_deps(), soap_o2o_date_attribute(), soap_o2o_dlrmask_smsc_yn_attribute(), soap_o2o_dlrmask_success_01_attribute(), soap_o2o_msgdata_attribute(), soap_o2o_validity30_attribute(), soap_parse_mo(), soap_process_deps(), soap_read_response(), soap_release_dependences(), soap_select_function(), soap_send(), soap_send_loop(), soap_shutdown_cb(), sql_list(), sql_single(), start_request(), status_cb(), store_file_for_each_message(), store_file_load(), store_file_save(), store_file_save_ack(), store_spool_save(), store_spool_save_ack(), store_to_dict(), store_uuid(), type_as_str(), udp_addwdp(), udp_addwdp_from_client(), udp_addwdp_from_server(), udp_receiver(), udp_sender(), udpc_find_mapping(), url_result_thread(), urltrans_find(), urltrans_find_service(), wap_msg_recv(), wdp_create(), wdp_event_dump(), wdp_msg2event(), wdp_router(), wdp_to_wapboxes(), wrapper_receiver(), wrapper_sender(), wrapper_shutdown(), write_msg(), wtp_event_dump(), xidris_parse_reply(), xidris_receive_sms(), xml_error(), and yyerror().
|
static |
Definition at line 81 of file test_xmlrpc.c.
Referenced by main().
|
static |
Definition at line 84 of file test_xmlrpc.c.
Referenced by brunet_send_sms(), clickatell_send_sms(), client_session(), client_thread(), config_reload(), create_onetrans(), error_converting(), error_requesting(), error_requesting_back(), generic_send_sms(), get_receiver(), http_accept_request(), http_get_real(), http_read_thread(), http_start_request(), http_thread(), httpadmin_run(), httpd_emu(), httpd_serve(), httpsmsc_receiver(), kannel_send_sms(), kill_kannel(), main(), make_url(), numhash_create(), ota_tokenize_bookmarks(), ota_tokenize_settings(), pap_event_create(), pap_event_unpack(), pap_request_thread(), parse_request_line(), parse_url(), proxy_used_for_host(), remember_receiver(), return_reply(), send_post(), send_push_response(), sendsms_thread(), server_create(), set_referer_url(), start_fetch(), start_request(), tell_fatal_error(), url_pattern(), wap_map_add_url(), ws_pragma_use(), xidris_send_sms(), and xmlrpc_doc_send().