abyss.h File Reference

#include <pthread.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <limits.h>
#include <dirent.h>
#include <time.h>

Include dependency graph for abyss.h:

Go to the source code of this file.

Data Structures

struct  _TConn
struct  _TPoolZone
struct  finddata_t
struct  TBuffer
struct  TFileFind
struct  TList
struct  TPool
struct  TServer
struct  TSession
struct  TString
struct  TTable
struct  TTableItem

Defines

#define A_SUBDIR   1
#define BUFFER_SIZE   4096
#define CR   '\r'
#define CRLF   "\r\n"
#define DEFAULT_CONF_FILE   DEFAULT_ROOT"/conf/abyss.conf"
#define DEFAULT_DOCS   DEFAULT_ROOT"/htdocs"
#define DEFAULT_LOG_FILE   DEFAULT_ROOT"/log/abyss.log"
#define DEFAULT_ROOT   "/usr/local/abyss"
#define FALSE   0
#define ioctlsocket(a, b, c)   ioctl((a),(b),(c))
#define IPB1(x)   (((unsigned char *)(&x))[0])
#define IPB2(x)   (((unsigned char *)(&x))[1])
#define IPB3(x)   (((unsigned char *)(&x))[2])
#define IPB4(x)   (((unsigned char *)(&x))[3])
#define LBR   "\n"
#define LF   '\n'
#define MAX_CONN   16
#define NAME_MAX   1024
#define NULL   ((void *)0)
#define O_BINARY   0
#define O_TEXT   0
#define SERVER_HTML_INFO   "<p><HR><b><i><a href=\"http:\057\057abyss.linuxave.net\">ABYSS Web Server</a></i></b> version "SERVER_VERSION"<br>&copy; <a href=\"mailto:mmoez@bigfoot.com\">Moez Mahfoudh</a> - 2000</p>"
#define SERVER_HVERSION   "ABYSS/0.3"
#define SERVER_PLAIN_INFO
#define SERVER_VERSION   "0.3"
#define THREAD_ENTRYTYPE
#define TIME_INFINITE   0xffffffff
#define TRUE   1

Typedefs

typedef int bool
typedef unsigned char byte
typedef short int16
typedef int int32
typedef long int64
typedef char int8
typedef void *(* PTHREAD_START_ROUTINE )(void *)
typedef struct _TConn TConn
typedef struct tm TDate
typedef int TFile
typedef struct finddata_t TFileInfo
typedef struct stat TFileStat
typedef struct in_addr TIPAddr
typedef pthread_mutex_t TMutex
typedef struct _TPoolZone TPoolZone
typedef uint32 TSocket
typedef pthread_t TThread
typedef uint32(THREAD_ENTRYTYPE * TThreadProc )(void *)
typedef unsigned short uint16
typedef unsigned int uint32
typedef unsigned long uint64
typedef unsigned char uint8
typedef bool(* URIHandler )(TSession *)

Enumerations

enum  TMethod {
  m_unknown, m_get, m_put, m_head,
  m_post, m_delete, m_trace, m_options
}

Functions

void Base64Encode (char *s, char *d)
bool BufferAlloc (TBuffer *buf, uint32 memsize)
void BufferFree (TBuffer *buf)
bool BufferRealloc (TBuffer *buf, uint32 memsize)
bool ConfReadMIMETypes (char *filename)
bool ConfReadServerFile (char *filename, TServer *srv)
TConnConnAlloc ()
bool ConnCreate (TConn *c, TSocket *s, void(*func)(TConn *))
void ConnFree (TConn *c)
bool ConnKill (TConn *c)
bool ConnProcess (TConn *c)
bool ConnRead (TConn *c, uint32 timems)
void ConnReadInit (TConn *c)
bool ConnReadLine (TConn *c, char **z, uint32 timems)
bool ConnWrite (TConn *c, void *buffer, uint32 size)
bool ConnWriteFromFile (TConn *c, TFile *file, uint64 start, uint64 end, void *buffer, uint32 buffersize, uint32 rate)
int32 DateCompare (TDate *d1, TDate *d2)
bool DateDecode (char *s, TDate *tm)
bool DateFromGMT (TDate *d, time_t t)
bool DateFromLocal (TDate *d, time_t t)
bool DateInit ()
bool DateToLogString (TDate *tm, char *s)
bool DateToString (TDate *tm, char *s)
bool FileClose (TFile *f)
void FileFindClose (TFileFind *filefind)
bool FileFindFirst (TFileFind *filefind, char *path, TFileInfo *fileinfo)
bool FileFindNext (TFileFind *filefind, TFileInfo *fileinfo)
bool FileOpen (TFile *f, char *name, uint32 attrib)
bool FileOpenCreate (TFile *f, char *name, uint32 attrib)
int32 FileRead (TFile *f, void *buffer, uint32 len)
bool FileSeek (TFile *f, uint64 pos, uint32 attrib)
uint64 FileSize (TFile *f)
bool FileStat (char *filename, TFileStat *filestat)
bool FileWrite (TFile *f, void *buffer, uint32 len)
int32 HTTPRead (TSession *s, char *buffer, uint32 len)
char * HTTPReasonByStatus (uint16 status)
bool HTTPWrite (TSession *s, char *buffer, uint32 len)
bool HTTPWriteEnd (TSession *s)
bool ListAdd (TList *sl, void *str)
bool ListAddFromString (TList *list, char *c)
bool ListFindString (TList *sl, char *str, uint16 *index)
void ListFree (TList *sl)
void ListInit (TList *sl)
void ListInitAutoFree (TList *sl)
void LogClose (TServer *srv)
bool LogOpen (TServer *srv, char *filename)
void LogWrite (TServer *srv, char *c)
bool MIMETypeAdd (char *type, char *ext)
char * MIMETypeFromExt (char *ext)
char * MIMETypeFromFileName (char *filename)
char * MIMETypeGuessFromFile (char *filename)
void MIMETypeInit ()
bool MutexCreate (TMutex *m)
void MutexFree (TMutex *m)
bool MutexLock (TMutex *m)
bool MutexTryLock (TMutex *m)
bool MutexUnlock (TMutex *m)
void * PoolAlloc (TPool *p, uint32 size)
bool PoolCreate (TPool *p, uint32 zonesize)
void PoolFree (TPool *p)
char * PoolStrdup (TPool *p, char *s)
bool RangeDecode (char *str, uint64 filesize, uint64 *start, uint64 *end)
bool RequestAuth (TSession *r, char *credential, char *user, char *pass)
void RequestFree (TSession *r)
char * RequestHeaderValue (TSession *r, char *name)
void RequestInit (TSession *r, TConn *c)
bool RequestRead (TSession *r)
bool RequestUnescapeURI (TSession *r)
bool RequestValidURI (TSession *r)
bool RequestValidURIPath (TSession *r)
bool ResponseAddField (TSession *r, char *name, char *value)
bool ResponseChunked (TSession *s)
bool ResponseContentLength (TSession *r, uint64 len)
bool ResponseContentType (TSession *r, char *type)
void ResponseError (TSession *r)
void ResponseStatus (TSession *r, uint16 code)
void ResponseStatusErrno (TSession *r)
void ResponseWrite (TSession *r)
bool ServerAddHandler (TServer *srv, URIHandler handler)
bool ServerCreate (TServer *srv, char *name, uint16 port, char *filespath, char *logfilename)
void ServerDefaultHandler (TServer *srv, URIHandler handler)
void ServerFree (TServer *srv)
void ServerInit (TServer *srv)
void ServerRun (TServer *srv)
void ServerRunOnce (TServer *srv)
bool SessionLog (TSession *s)
bool SocketAccept (TSocket *s, TSocket *ns, TIPAddr *ip)
uint32 SocketAvailableReadBytes (TSocket *s)
bool SocketBind (TSocket *s, TIPAddr *addr, uint16 port)
bool SocketBlocking (TSocket *s, bool b)
bool SocketClose (TSocket *s)
bool SocketConnect (TSocket *s, TIPAddr *addr, uint16 port)
bool SocketCreate (TSocket *s)
uint32 SocketError ()
bool SocketInit ()
bool SocketListen (TSocket *s, uint32 backlog)
uint32 SocketPeek (TSocket *s, char *buffer, uint32 len)
uint32 SocketRead (TSocket *s, char *buffer, uint32 len)
uint32 SocketWait (TSocket *s, bool rd, bool wr, uint32 timems)
uint32 SocketWrite (TSocket *s, char *buffer, uint32 len)
bool StringAlloc (TString *s)
bool StringBlockConcat (TString *s, char *s2, char **ref)
bool StringConcat (TString *s, char *s2)
char * StringData (TString *s)
void StringFree (TString *s)
bool TableAdd (TTable *t, char *name, char *value)
bool TableAddReplace (TTable *t, char *name, char *value)
char * TableFind (TTable *t, char *name)
bool TableFindIndex (TTable *t, char *name, uint16 *index)
void TableFree (TTable *t)
void TableInit (TTable *t)
void ThreadClose (TThread *t)
bool ThreadCreate (TThread *t, TThreadProc func, void *arg)
void ThreadExit (TThread *t, int ret_value)
bool ThreadKill (TThread *t)
bool ThreadRun (TThread *t)
bool ThreadStop (TThread *t)
void ThreadWait (uint32 ms)
void TraceExit (char *fmt,...)
void TraceMsg (char *fmt,...)


Define Documentation

#define A_SUBDIR   1

Definition at line 388 of file abyss.h.

Referenced by cmpfiledates(), cmpfilenames(), FileFindNext(), and sendDirectoryDocument().

#define BUFFER_SIZE   4096

Definition at line 484 of file abyss.h.

#define CR   '\r'

Definition at line 595 of file abyss.h.

Referenced by ConfGetToken(), ConfReadLine(), GetToken(), and processHeaderLine().

#define CRLF   "\r\n"

Definition at line 597 of file abyss.h.

#define DEFAULT_CONF_FILE   DEFAULT_ROOT"/conf/abyss.conf"

Definition at line 72 of file abyss.h.

#define DEFAULT_DOCS   DEFAULT_ROOT"/htdocs"

Definition at line 71 of file abyss.h.

Referenced by createServer(), oldHighLevelAbyssRun(), and xmlrpc_server_abyss_init().

#define DEFAULT_LOG_FILE   DEFAULT_ROOT"/log/abyss.log"

Definition at line 73 of file abyss.h.

#define DEFAULT_ROOT   "/usr/local/abyss"

Definition at line 69 of file abyss.h.

#define FALSE   0

Definition at line 115 of file abyss.h.

#define ioctlsocket ( a,
b,
 )     ioctl((a),(b),(c))

Definition at line 103 of file abyss.h.

#define IPB1 (  )     (((unsigned char *)(&x))[0])

Definition at line 329 of file abyss.h.

Referenced by SessionLog().

#define IPB2 (  )     (((unsigned char *)(&x))[1])

Definition at line 330 of file abyss.h.

Referenced by SessionLog().

#define IPB3 (  )     (((unsigned char *)(&x))[2])

Definition at line 331 of file abyss.h.

Referenced by SessionLog().

#define IPB4 (  )     (((unsigned char *)(&x))[3])

Definition at line 332 of file abyss.h.

Referenced by SessionLog().

#define LBR   "\n"

Definition at line 121 of file abyss.h.

#define LF   '\n'

Definition at line 596 of file abyss.h.

#define MAX_CONN   16

Definition at line 80 of file abyss.h.

Referenced by ServerInit(), and waitForConnectionCapacity().

#define NAME_MAX   1024

Definition at line 367 of file abyss.h.

Referenced by FileFindFirst(), and FileFindNext().

#define NULL   ((void *)0)

Definition at line 107 of file abyss.h.

Referenced by __dialog_confirmed(), __dialog_created(), __dialog_destroy(), __tm_reply_in(), _bdb_delete_cursor(), _bm_register_timer(), _xode_appendsibling(), _xode_expat_endElement(), _xode_expat_startElement(), _xode_hidesibling(), _xode_insert(), _xode_new(), _xode_pool_cleanup_append(), _xode_pool_free(), _xode_pool_heap(), _xode_pool_new(), _xode_put_expatattribs(), _xode_search(), _xode_strcmp(), _xode_stream_charData(), _xode_stream_endElement(), _xode_stream_startElement(), _xode_tospool(), a2dns_node(), AAAInMessage(), ac_cancel(), ac_get_maxval(), ac_reply(), ac_sl_msg(), ac_tm_new(), ac_uac_req(), action_stat(), activate_host(), actually_rewrite(), add234(), add234_internal(), add_backup_rule(), add_cisco_vsa(), add_code_to_array(), add_dest2list(), add_event(), add_failure_route(), add_failure_route_rule(), add_failure_route_to_tree(), add_from_db(), add_hf_helper(), add_host(), add_ld_session(), add_list_to_head(), add_mi_attr(), add_mi_sdp_nodes(), add_mi_sdp_payload_nodes(), add_mi_session_nodes(), add_mi_stream_nodes(), add_next(), add_pending_sdp_session(), add_profile_definitions(), add_pua_event(), add_rcv_param_f(), add_resource(), add_resource_instance(), add_route(), add_route_flags(), add_route_rule(), add_route_to_tree(), add_rtpproxy_socks(), add_rule2hash(), add_rule_to_list(), add_sdp(), add_source(), add_to_tree(), add_uac(), add_waiting_watchers(), add_watcher_list(), addf_mi_attr(), addf_mi_node_child(), addf_mi_node_sibling(), addpos234(), addr_hash_table_insert(), addToPool(), agentx_child(), agg_body_sendn_update(), agregate_xmls(), alias_db_lookup(), allow_address(), allow_trusted(), alter_mediaip(), alter_mediaport(), alter_rtcp(), append_header(), append_hf_api(), append_time_f(), append_to_reply_f(), as_relay_stat(), auth_fixup(), authorize(), avpops_get_aname(), avpops_parse_pvar(), backup_config(), bdb_append_row(), bdb_bind_api(), bdb_check_reload(), bdb_convert_row(), bdb_delete(), bdb_free_query(), bdb_get_colmap(), bdb_get_columns(), bdb_init(), bdb_insert(), bdb_is_database(), bdb_query(), bdb_row_match(), bdb_time2str(), bdb_update(), bdblib_close(), bdblib_create_journal(), bdblib_create_table(), bdblib_get_db(), bdblib_get_table(), bdblib_init(), bdblib_log(), bdblib_reopen(), begin_timelimit(), bind_xmpp(), bla_cb(), bla_handle_notify(), bla_process_body(), bla_set_flag(), bm_get_time(), bm_get_time_diff(), bm_reset_timer(), buddy_signed_off(), buddy_signed_on(), buddy_status_changed(), build_async_handler(), build_cell(), build_dlg_t(), build_empty_bla_body(), build_local(), build_new_qos_ctx(), build_pidf(), build_publish(), build_res_buf_from_sip_req(), build_rule(), build_str_hdr(), build_uac_cancel(), build_uppubl_cbparam(), build_xmpp_content(), bye_reply_cb(), calc_hash_profile(), calculate_hooks(), carrier_name_2_id(), carrierroute_db_close(), carrierroute_db_init(), carrierroute_db_open(), cfg_lock(), cfg_unlock(), change_mode(), check_against_rule_list(), check_and_split_time_list(), check_blacklist(), check_blacklist_fixup(), check_byxxx(), check_for_krb(), check_from(), check_hdrs_changes(), check_if_dialog(), check_options_callback(), check_to(), check_user_blacklist(), check_user_blacklist_fixup(), check_username(), checkobj(), child_init(), clear_route_data(), client_connect_signals(), client_find_account(), clone_mi_node(), clone_mi_tree(), cmp_str_params(), comp_s2r(), comp_s2s(), comp_strval(), compare_carrier_data(), compare_domain_data(), conds2perlarray(), conf_init(), conf_needs_forward(), conf_parse_filter(), conf_parse_proxy(), conf_parse_switch(), conf_show(), conf_str2int(), ConfGetToken(), conn_find_domain(), conn_new(), ConnCreate(), ConnRead(), ConnReadHeader(), constr_multipart_body(), constr_rlmi_doc(), CONSTR_RLSUBS_DID(), consumeInterprocessBuffer(), contains_event(), contains_pua_event(), conv183(), convertStrToCharString(), core2strar(), count_timer_procs(), cr_do_route(), cr_load_next_domain(), create_as_event_sl(), create_as_event_t(), create_bl_head(), create_carrier_data(), create_domain_data(), create_mi_node(), create_winfo_xml(), createAndBindSocket(), createContactRow(), createHandler(), createHashRecord(), createHashTable(), createIndex(), createOutstandingConnList(), createRegUserRow(), createRow(), createRowsFromIPList(), createServer(), daemonize(), db_bind_mod(), db_build_userbl_tree(), db_check_api(), db_flat_bind_api(), db_free(), db_free_columns(), db_free_result(), db_free_row(), db_free_rows(), db_load_avp(), db_load_urecord(), db_mysql_bind_api(), db_mysql_new_connection(), db_new_result(), db_oracle_bind_api(), db_oracle_delete(), db_oracle_errorinfo(), db_oracle_insert(), db_oracle_new_connection(), db_oracle_query(), db_oracle_raw_query(), db_oracle_reconnect(), db_oracle_store_result(), db_oracle_submit_query(), db_oracle_update(), db_oracle_val2bind(), db_postgres_bind_api(), db_postgres_convert_rows(), db_postgres_delete(), db_postgres_fetch_result(), db_postgres_insert(), db_postgres_new_connection(), db_postgres_store_result(), db_postgres_str2val(), db_postgres_update(), db_postgres_val2str(), db_query_avp(), db_reload_source(), db_restore(), db_str2time(), db_str2val(), db_table_version(), db_time2str(), db_unixodbc_bind_api(), db_unixodbc_convert_rows(), db_unixodbc_fetch_result(), db_unixodbc_get_columns(), db_unixodbc_list_insert(), db_unixodbc_new_connection(), db_update(), dbt_bind_api(), dbt_cache_check_db(), dbt_cache_destroy(), dbt_cache_get_db(), dbt_cache_print(), dbt_column_new(), dbt_convert_rows(), dbt_db_del_table(), dbt_db_get_table(), dbt_delete(), dbt_free_result(), dbt_get_refs(), dbt_init(), dbt_init_cache(), dbt_insert(), dbt_is_database(), dbt_load_file(), dbt_parse_orderbyclause(), dbt_print_table(), dbt_project_result(), dbt_query(), dbt_raw_query(), dbt_result_extract_fields(), dbt_result_free(), dbt_result_new(), dbt_result_new_row(), dbt_result_print(), dbt_row_new(), dbt_sort_result(), dbt_table_free(), dbt_table_free_rows(), dbt_table_new(), dbt_table_update_flags(), dbt_update(), deactivate_host(), decode2format(), decode_avp_value(), decode_contact(), decode_contact_header(), decode_msg(), decode_uri(), decode_uri_sip_xmpp(), decode_uri_xmpp_sip(), default_method(), del234(), del_mi_attr_list(), delete_cell(), delete_expired(), delete_host(), delete_htable(), delete_phtable(), delete_shtable(), deleteContactRecord(), deleteContactRow(), deleteRegUserRow(), deleteUser(), delpos234(), delpos234_internal(), destroy(), destroy_black_lists(), destroy_carrier_data(), destroy_dlg_callbacks_list(), destroy_dlg_profile(), destroy_failure_route_rule_list(), destroy_hash(), destroy_htable(), destroy_linkers(), destroy_list(), destroy_phtable(), destroy_route_data(), destroy_route_flags(), destroy_route_flags_list(), destroy_shmlock(), destroy_shtable(), destroy_source_list(), destroyOutstandingConnList(), determine_fromto_uri(), determine_fromto_user(), determine_source(), determineSortType(), Dialog_Param_new(), dialog_update_db(), diameter_authorize(), diameter_is_user_in(), dictionary_del(), dictionary_dump(), dictionary_get(), dictionary_set(), dictionary_unset(), dispatch_actions(), dispatch_relay(), dlg_bridge(), dlg_bridge_tm_callback(), dlg_new_dialog(), dlg_onreq(), dlg_onroute(), dlg_ontimeout(), dlg_refer_callee(), dlg_refer_tm_callback(), dlg_set_leg_info(), dlg_timer_routine(), dlg_transfer(), dlg_transfer_ctx_free(), dlg_update_cseq(), dns_node_copy(), dns_res_copy(), do_action(), do_duplicate_rr(), do_from_gw(), do_load_gws(), do_t_unref(), do_to_gw(), does_uri_exist(), domain_name_2_id(), done_timelimit(), dp_can_connect_str(), dp_trans_fixup(), dp_translate_f(), ds_check_timer(), ds_get_index(), ds_hash_authusername(), ds_hash_callid(), ds_hash_fromuri(), ds_hash_pvar(), ds_hash_ruri(), ds_hash_touri(), ds_is_from_list(), ds_load_db(), ds_load_list(), ds_mark_dst(), ds_mi_list(), ds_mi_set(), ds_next_dst(), ds_print_list(), ds_print_mi_list(), ds_print_sets(), ds_select_dst(), ds_set_state(), ds_update_dst(), dump_fifo(), dump_tree_recursor(), dupl_string(), encode2format(), encode_contact(), encode_msg(), encode_uri(), encode_uri_sip_xmpp(), encode_uri_xmpp_sip(), end_media_session(), enum_pv_query_3(), env_set_code_status(), escape_param(), escape_user(), eval_elem(), event_parser(), event_stat(), exec_avp(), exec_avp_fixup(), exec_msg(), exec_str(), executeInterprocessBufferCmd(), extract_allowed_headers(), extract_mediainfo(), extract_mediaip(), extract_rtcp(), extract_sdialog_info(), extract_sphere(), extractServerCreateParms(), fifo_close_async(), fifo_process(), FileFindFirst(), filter_methods_contains_request(), find234(), find_accounts(), find_auto_backup(), find_content_type_application_sdp(), find_group_in_addr_hash_table(), find_line_starting_with(), find_qos_sdp(), find_rule_by_hash(), find_rule_by_host(), find_sdp_line(), find_sip_user(), find_users(), findExtension(), findHashRecord(), findrel234(), findrelpos234(), first_token(), fix_actions(), fix_nated_contact_f(), fix_nated_sdp_f(), FixContact(), fixstringloadgws(), fixup_db_query_avp(), fixup_delete_avp(), fixup_fix_sdp(), fixup_http_query(), fixup_igp(), fixup_op_avp(), fixup_profile(), fixup_replace_from1(), fixup_replace_from2(), fixup_rule_backup(), fixup_sl_send_reply(), fixup_spve(), fixup_stat(), fixup_subst(), fixup_t_send_reply(), fixup_var_str_int(), force_rtp_proxy(), force_rtp_proxy0_f(), format_converter(), forward_fifo_filter(), forward_fifo_list(), forward_fifo_proxy(), forward_fifo_switch(), free2tree234(), free_cbparam(), free_cell(), free_dns_res(), free_ld_sessions(), free_pres_event(), free_watcher_list(), free_xml_body(), free_xs_list(), freeInterprocessBuffer(), freetree234(), func_handle_publish(), generate_avps(), generate_cid(), generate_ETag(), generate_string(), generateListing(), get_all_db_ucontacts(), get_all_mem_ucontacts(), get_auth_string(), get_bl_head_by_name(), get_callid(), get_carrier_data(), get_columns(), get_connected_ldap_session(), get_contact_uri(), get_counter(), get_cseq_number(), get_current_dialog(), get_data(), get_database_info(), get_db_subs_auth(), get_dialog(), get_domain(), get_domain_data(), get_domain_data_or_add(), get_error_reason(), get_event(), get_event_list(), get_expires(), get_fifo_opts(), get_final_notify_body(), get_from_tag(), get_from_uri(), get_gid_fixup(), get_ha1(), get_hf(), get_ld_session(), get_local_contact(), get_maddr_uri(), get_media_ip_from_block(), get_media_relay(), get_mi_attr_by_name(), get_next_he(), get_next_su(), get_node_selector(), get_p_notify_body(), get_profile_size(), get_realm(), get_record_id(), get_register_expire(), get_reply_totag(), get_resource_list(), get_rows(), get_rtcp_port_attribute(), get_rule_by_hash(), get_rule_node(), get_rules_doc(), get_sdp_message(), get_sdp_session_ip(), get_session_info(), get_signaling_ip(), get_source_uri(), get_sphere(), get_status_str(), get_stored_info(), get_subs_db(), get_subs_dialog(), get_to_tag(), get_to_uri(), get_uri_user(), get_user_group(), get_user_script(), get_username_domain(), get_wi_notify_body(), get_wi_subs_db(), get_xcap_etag(), get_xcap_path(), getRow(), GetToken(), h350_auth_lookup(), h350_auth_lookup_fixup(), h350_call_preferences(), h350_service_level(), h350_sipuri_lookup(), handle_expired_record(), handle_expired_subs(), handle_openserSIPServiceStartTime(), handle_publish(), handle_subscribe(), handleContactCallbacks(), has_body_f(), hash_table_free(), hash_table_insert(), hash_table_install(), hash_table_lookup(), hashT_clean(), HashTable_del(), HashTable_new(), hname_fixup(), hostent_shm_cpy(), http_get_rules_doc(), http_query(), HTTPReasonByStatus(), ic_parse_byday(), ic_parse_byxxx(), imc_add_member(), imc_add_room(), imc_del_member(), imc_del_room(), imc_get_member(), imc_get_room(), imc_handle_accept(), imc_handle_create(), imc_handle_deny(), imc_handle_destroy(), imc_handle_exit(), imc_handle_help(), imc_handle_invite(), imc_handle_join(), imc_handle_list(), imc_handle_message(), imc_handle_remove(), imc_handle_unknown(), imc_htable_destroy(), imc_htable_init(), imc_inv_callback(), imc_manager(), imc_mi_list_members(), imc_mi_list_rooms(), imc_parse_cmd(), imc_release_room(), imc_room_broadcast(), imc_send_message(), index234(), iniparser_add_entry(), iniparser_dump_ini(), iniparser_getnsec(), iniparser_getsecname(), iniparser_getstr(), iniparser_getstring(), iniparser_new(), init(), init_async_lock(), init_black_lists(), init_CPL_parser(), init_evlist(), init_libpurple(), init_mi_tree(), init_mytcp(), init_openserSIPContactTable(), init_openserSIPPortTable(), init_pua_evlist(), init_route_data(), init_shmlock(), init_source_list(), init_timer(), init_tls_domains(), initInterprocessBuffers(), initRequestInfo(), initSocketStuff(), input_add(), insert(), insert_db_subs_auth(), insert_htable(), insert_phtable(), insert_shtable(), insertContactRecord(), insertHashRecord(), internal_mi_print_dlg(), is1918addr(), is_3263_failure(), is_dialog(), is_dlg_in_profile(), is_domain_local(), is_from_local(), is_from_user_enum_2(), is_method_f(), is_peer_verified(), is_uri_user_e164(), is_user_in(), lcr_hash_table_contents_free(), lcr_hash_table_insert(), ldap_connect(), ldap_disconnect(), ldap_filter_url_encode_fixup(), ldap_get_attr_vals(), ldap_get_vendor_version(), ldap_inc_result_pointer(), ldap_params_search(), ldap_result_check(), ldap_result_check_fixup(), ldap_result_fixup(), ldap_rfc4515_escape(), ldap_search_fixup(), ldap_search_impl(), ldap_url_search(), ldap_write_result(), lds_search(), link_negotiated_qos_sdp_and_run_cb(), link_pending_qos_sdp(), list_hash(), ListFree(), ListInit(), ListInitAutoFree(), load_bm(), load_carrier_map(), load_config(), load_domain_map(), load_gws_1(), load_gws_from_grp(), load_ldap(), load_metadata_columns(), load_metadata_defaults(), load_metadata_keys(), load_metadata_logflags(), load_metadata_readonly(), load_pcres(), load_re(), load_route_data_db(), load_sl(), load_textops(), load_user_carrier(), m_clean_silo(), m_dump(), m_send_ontimer(), m_store(), m_tm_callback(), makeThread(), mallocProduct(), map_id2name(), match_addr_hash_table(), match_hash_table(), MD5File(), mediaproxy_connect(), mediaproxy_disconnect(), mem_copy_subs(), mem_copy_subs_noc(), mi_address_dump(), mi_allow_uri(), mi_bm_enable_global(), mi_bm_enable_timer(), mi_bm_granularity(), mi_bm_loglevel(), mi_check_hash(), mi_child_init(), mi_cpl_get(), mi_cpl_load(), mi_cpl_remove(), mi_datagram_server(), mi_datagram_write_node(), mi_datagram_writer_init(), mi_debug(), mi_dlg_bridge(), mi_domain_dump(), mi_enable_natping(), mi_enable_rtp_proxy(), mi_fifo_server(), mi_fix_aor(), mi_flat_rotate_cmd(), mi_fmt_init(), mi_get_gflags(), mi_get_hash(), mi_get_pid(), mi_get_pipes(), mi_get_prob(), mi_get_profile(), mi_get_queues(), mi_init_datagram_buffer(), mi_init_fifo_server(), mi_is_gflag(), mi_lcr_gw_dump(), mi_lcr_lcr_dump(), mi_mod_init(), mi_open_reply_pipe(), mi_pcres_reload(), mi_pike_list(), mi_print_blacklists(), mi_print_dlgs(), mi_print_dlgs_ctx(), mi_print_fmt(), mi_print_gws(), mi_print_lcrs(), mi_print_routes(), mi_profile_list(), mi_pua_publish(), mi_pua_subscribe(), mi_publ_rpl_cback(), mi_push_load(), mi_pwd(), mi_read_line(), mi_refreshWatchers(), mi_reload_blacklist(), mi_reload_rules(), mi_reset_gflag(), mi_set_dbg(), mi_set_gflag(), mi_set_pid(), mi_set_pipe(), mi_set_prob(), mi_set_queue(), mi_show_rtpproxies(), mi_stats(), mi_subnet_dump(), mi_terminate_dlg(), mi_tm_hash(), mi_tm_reply(), mi_tm_uac_dlg(), mi_translate(), mi_trusted_dump(), mi_trusted_reload(), mi_usrloc_add(), mi_usrloc_dump(), mi_usrloc_flush(), mi_usrloc_rm_aor(), mi_usrloc_rm_contact(), mi_usrloc_show_contact(), mi_write_node(), mi_writer_init(), mimeTypeAdd(), MIMETypeAdd2(), mimeTypeFromExt(), MIMETypeFromExt2(), mimeTypeFromFileName(), MIMETypeFromFileName2(), mimeTypeGuessFromFile(), MIMETypeInit(), MIMETypeTerm(), miniclient_start(), mk_action(), mk_elem(), mod_destroy(), mod_init(), ms_extract_time(), msg_list_check(), msg_list_el_new(), msg_list_free(), msg_list_init(), msg_list_reset(), msg_presentity_clean(), msg_watchers_clean(), mwi_publ_handl(), naptr_sort(), NAT_Contact_new(), NAT_Contact_purge_expired(), nathelper_add_rtpproxy_set(), net_read_static(), new_dlg_profile(), new_expression(), new_htable(), new_phtable(), new_presentity(), new_shtable(), new_sr_timer(), new_timer_process_list(), newtree234(), newvdbobj(), next_gw(), nh_timer(), Notify2Xmpp(), offline_nbody(), oldHighLevelAbyssRun(), openserSIPContactTable_get_value(), openserSIPRegUserLookupTable_create_row(), openserSIPRegUserLookupTable_delete_row(), openserSIPRegUserLookupTable_duplicate_row(), openserSIPRegUserLookupTable_extract_index(), openserSIPRegUserLookupTable_row_copy(), openserSIPRegUserLookupTable_set_action(), openserSIPStatusCodesTable_create_row(), openserSIPStatusCodesTable_delete_row(), openserSIPStatusCodesTable_duplicate_row(), openserSIPStatusCodesTable_extract_index(), openserSIPStatusCodesTable_get_value(), openserSIPStatusCodesTable_row_copy(), openserSIPStatusCodesTable_set_action(), ops_check_avp(), ops_dbdelete_avps(), ops_dbload_avps(), ops_dbquery_avps(), ops_dbstore_avps(), ops_op_avp(), ops_pushto_avp(), ops_subst(), ospBuildUsageFromDestination(), ospCheckOrigDestination(), ospCheckTranslation(), ospDumpAllDestination(), ospGetCallId(), ospGetFromUserpart(), ospGetLastOrigDestination(), ospGetNextOrigDestination(), ospGetRpidUserpart(), ospGetTermDestination(), ospGetToUserpart(), ospGetTransactionId(), ospInitMod(), ospLoadRoutes(), ospPrepareDestination(), ospRebuildDestionationUri(), ospRecordCode(), ospReportOrigSetupUsage(), ospReportTermSetupUsage(), ospReportUsage(), ospReportUsageFromCookie(), ospReportUsageWork(), ospRequestRouting(), ospSetRpid(), ospSetupProvider(), ospValidateHeader(), ospVerifyParameters(), out_stream_node_callback(), p_tm_callback(), pair2perlpair(), parse_ac_msg(), parse_auth_avp(), parse_avp_db(), parse_avp_name(), parse_avp_spec(), parse_check_value(), parse_config(), parse_config_file(), parse_expression(), parse_expression_list(), parse_from_uri(), parse_method(), parse_methods(), parse_ppi_uri(), parse_pvname_list(), parse_repl(), parse_rlsubs_did(), parse_rr(), parse_subs_state(), parse_to_uri(), parser_init(), parseRequestUri(), parseurl(), passwd_cb(), patch(), patch_content_length(), pdt_add_to_tree(), pdt_check_pd(), pdt_check_pd_node(), pdt_free_node(), pdt_free_tree(), pdt_get_domain(), pdt_get_tree(), pdt_init_tree(), pdt_load_db(), pdt_mi_add(), pdt_mi_delete(), pdt_mi_list(), pdt_print_mi_node(), pdt_print_node(), pdt_print_tree(), perl_exec1(), perl_exec_simple1(), perl_exec_simple2(), perl_mi_reload(), perlresult2dbres(), perlvdb_db_delete(), perlvdb_db_init(), perlvdb_db_insertreplace(), perlvdb_db_query(), perlvdb_db_update(), perlvdb_perlmethod(), perlvdb_use_table(), pipe_handle_message(), pipe_handle_publish(), pipe_handle_subscribe(), pkg_str_dup(), pkg_strndup(), PoolAlloc(), PoolCreate(), PoolReturn(), PoolStrdup(), PoolZoneAlloc(), populate_leg_info(), pre_print_uac_request(), prefix2domain(), prefix_len_insert(), preinit_black_lists(), preload_udomain(), preprocess_request(), pres_agg_nbody(), pres_apply_auth(), pres_htable_restore(), pres_process_body(), pres_update_status(), pres_watcher_allowed(), pres_Xmpp2Sip(), presence_subscribe(), print_encoded_uri(), print_fifo_err(), print_local_uri(), print_qos_sdp(), print_replace_help(), print_rr_body(), print_ua_pres(), print_uac_request(), print_uri_junit_tests(), printHashSlot(), process_list_and_exec(), process_mi_params(), process_pings(), process_pong(), processCall(), processContentLength(), processHeaderLine(), profile_cleanup(), pua_add_events(), pua_build_dlg_t(), publ_build_hdr(), publ_cback_func(), publ_notify(), publ_send200ok(), publish_cbparam(), purple_new_cmd(), purple_send_message_cmd(), purple_send_publish_cmd(), purple_send_sip_publish(), purple_send_subscribe_cmd(), pv_fetch_contacts(), pv_get_avp_name(), pv_get_dlg(), pv_get_dlg_count(), pv_get_dlg_ctx(), pv_get_dlg_lifetime(), pv_get_dlg_status(), pv_get_intstrval(), pv_get_null(), pv_get_random_val(), pv_get_sintval(), pv_get_spec_index(), pv_get_spec_name(), pv_get_spec_value(), pv_get_strintval(), pv_get_strval(), pv_get_t_var_req(), pv_get_t_var_rpl(), pv_get_tm_branch_idx(), pv_get_tm_reply_code(), pv_get_uac_req(), pv_get_uintval(), pv_get_ulc(), pv_init_iname(), pv_lookup_spec_name(), pv_parse_color_name(), pv_parse_dlg_ctx_name(), pv_parse_dlg_name(), pv_parse_format(), pv_parse_index(), pv_parse_spec(), pv_parse_t_var_name(), pv_parse_uac_req_name(), pv_parse_ulc_name(), pv_printf(), pv_set_dlg_ctx(), pv_set_spec_value(), pv_set_uac_req(), pv_t_update_req(), pv_t_update_rpl(), pv_table_add(), pxml_add_xcap_server(), qos_dialog_created_CB(), qos_dialog_destroy_CB(), qos_dialog_mi_context_CB(), query_db_notify(), query_xcap_update(), radius_authorize_sterman(), radius_does_uri_exist_1(), radius_does_uri_user_exist_1(), radius_is_user_in(), radius_load_callee_avps(), radius_load_caller_avps(), readMIMETypesFile(), reallocProduct(), received_test(), reconnect(), record_route(), recordroute_diff(), refresh_watcher(), refreshXcapDoc(), reg_ex_comp(), register_all_mod_stats(), register_dlgcb(), register_lrt_info(), register_message_code_statistics(), register_timer(), register_timer_process(), register_tmcb(), register_utimer(), register_xcapcb(), registerForUSRLOCCallbacks(), regpv_free_profile(), regpv_free_profiles(), regpv_get_profile(), reindex_dests(), relay_reply(), reload_address_table(), reload_domain_table(), reload_fifo(), reload_gws_and_lcrs(), reload_route_data(), reload_trusted_table(), remap_status(), remove_backed_up(), remove_dialog_timer(), remove_header(), remove_hf_api(), remove_sdp(), remove_timeout(), remove_timer_unsafe(), repl_exp_parse(), replace_host(), reply_200(), reply_received(), request_winfo(), reset_proc_debug_level(), reset_timer_list(), reset_timers(), resolv_blacklist_init(), resource_subscriptions(), restore_db_subs(), restoreSignalHandlers(), retransmission_handler(), reverseParameters(), rewrite_on_rule(), rewrite_uri_recursor(), rfc1918address(), ring_destroy_hashtable(), ring_init_hashtable(), rls_handle_notify(), rls_handle_subscribe(), rls_notify_callback(), rls_notify_dlg(), rls_notify_extra_hdr(), rls_presentity_clean(), rls_restore_db_subs(), rls_send_notify(), rlsubs_table_update(), rm_dups(), rmv_from_db(), rtpp_checkcap(), rtpp_test(), rtpproxy_stop_stream(), rtpproxy_stream(), rtpproxy_stream2_f(), rule_fixup_recursor(), rule_translate(), run_action_list(), run_create_callbacks(), run_create_cbs(), run_load_callback(), run_qos_callbacks(), run_timer_process(), save_config(), sd_lookup(), search_api(), search_dlg_profile(), search_event(), search_htable(), search_phtable(), search_shtable(), seas_exit(), seas_init(), select_dpid(), select_rtpp_node(), send_2XX_reply(), send_bye(), send_command(), send_full_notify(), send_http_get(), send_notify_request(), send_openserDialogLimitMajorEvent_trap(), send_openserDialogLimitMinorEvent_trap(), send_openserMsgQueueDepthMajorEvent_trap(), send_openserMsgQueueDepthMinorEvent_trap(), send_publish(), send_reply(), send_rtpp_command(), send_sip_options_request(), send_subscribe(), sendXmlData(), ser_memmem(), ServerAddHandler(), ServerAddHandler2(), ServerCreate(), ServerCreateNoAccept(), serverRunConn(), ServerRunConn2(), set_body_f(), set_current_dialog(), set_default_method(), set_dlg_profile(), set_next_domain_on_rule(), set_next_domain_recursor(), set_proc_debug_level(), set_rpl_body_f(), setGroups(), setHandler(), setup_dialog_callbacks(), shm_clone_proxy(), shm_copy_event(), shm_copy_xcap_list(), shm_dup_cbparam(), shm_free_event(), shm_strdup(), shmcontact2dset(), should_cancel_branch(), sigchld_handler(), SIP_Dialog_new(), SIP_Dialog_purge_expired(), sip_resolvehost(), sip_trace(), sip_trace_mi(), Sipreply2Xmpp(), siptrace_get_table(), sl_get_reply_totag(), sl_send_reply_helper(), sleep_us(), SocketInit(), SocketUnixCreate(), SocketUnixCreateFd(), socketWait(), sort_srvs(), spawn_pinger(), spawn_sysUpTime_child(), srv2dns_node(), srv_response(), sst_build_minse_hdr(), sst_build_se_hdr(), sst_dialog_created_CB(), sst_dialog_mi_context_CB(), sst_dialog_terminate_CB(), star(), start_module_procs(), start_recording_f(), start_timer_processes(), str_strcasecmp(), str_strcmp(), str_toklen(), strcasefind(), strcrop(), strfind(), strlwc(), strskp(), strtoint(), subs_build_hdr(), subs_cback_func(), subs_cbparam_indlg(), subscribe_cbparam(), subst_user_f(), supported_transport(), t_cancel_branches(), t_check_trans(), t_get_reply_totag(), t_lookup_request(), t_lookupOriginalT(), t_reply_matching(), t_should_relay_response(), t_uac(), table2dt(), TableFind(), TableInit(), tcp_send_recv(), tel2sip(), testdb_udomain(), ThreadCreate(), ThreadPoolInit(), timer_db_update(), timer_send_notify(), tls_accept(), tls_find_server_domain(), tls_new_client_domain(), tls_new_client_domain_name(), tls_new_domain(), tls_new_server_domain(), tls_tcpconn_init(), tlsops_alt(), tmrec_new(), tr_byxxx_new(), tr_destroy(), tr_exec(), tr_get_class(), tr_lookup(), tr_lookup_class(), tr_new(), tr_param_free(), tr_table_add(), tr_txt_eval_re(), tr_txt_parse_re(), trace_onreply_in(), trace_onreply_out(), trace_onreq_in(), trace_onreq_out(), trace_send_duplicate(), trace_sl_onreply_out(), translate(), uac_cb(), uac_cleanup_cb(), uac_req_send(), uac_send_tm_callback(), uandd_to_uri(), ul_publish(), unescape_user(), unforce_rtp_proxy_f(), unlink_negotiated_qos_sdp(), unlink_pending_qos_sdp(), unset_dlg_profile(), update_contact(), update_db_subs(), update_filter(), update_htable(), update_in_list(), update_new_uri(), update_phtable(), update_presentity(), update_proxy(), update_pua(), update_pw_dialogs(), update_rlsubs(), update_route_data(), update_route_data_recursor(), update_shtable(), update_sl_reply_stat(), update_subs_db(), update_subscription(), update_switch(), update_watchers_status(), updateUser(), use_media_proxy(), userblacklist_db_close(), userblacklist_db_init(), userblacklist_db_open(), utils_forward(), val2perlval(), validateContentType(), verify_destination(), verify_source(), via_body_cloner(), via_diff(), w_dlg_bridge(), w_dlg_bye(), w_dlg_get(), w_dlg_isflagset(), w_dlg_manage(), w_dlg_refer(), w_dlg_resetflag(), w_dlg_setflag(), w_ds_select_domain(), w_ds_select_dst(), w_get_profile_size(), w_is_domain_local(), w_is_in_profile(), w_ldap_result1(), w_ldap_result_check_1(), w_pcre_match(), w_pcre_match_group(), w_pv_t_reply(), w_replace_from2(), w_send_reply(), w_set_dlg_profile(), w_sl_send_reply(), w_unset_dlg_profile(), wait_async_reply(), wait_timelimit(), winfo2xmpp(), write_conv(), write_function(), write_to_db(), xcapGetElem(), xcapGetNewDoc(), xcapInitNodeSel(), xcapNodeSelAddStep(), xcapNodeSelAddTerminal(), xj_address_translation(), xj_jcon_check_jconf(), xj_jcon_connect(), xj_jcon_del_jconf(), xj_jcon_disconnect(), xj_jcon_free(), xj_jcon_get_jconf(), xj_jcon_get_juid(), xj_jcon_init(), xj_jcon_is_ready(), xj_jcon_jconf_presence(), xj_jcon_pool_add(), xj_jcon_pool_add_jmsg(), xj_jcon_pool_del(), xj_jcon_pool_del_jmsg(), xj_jcon_pool_free(), xj_jcon_pool_get(), xj_jcon_pool_init(), xj_jcon_send_msg(), xj_jcon_send_presence(), xj_jcon_send_subscribe(), xj_jcon_set_attrs(), xj_jcon_set_juid(), xj_jcon_set_roster(), xj_jcon_update(), xj_jcon_user_auth(), xj_jconf_cmp(), xj_jconf_free(), xj_jconf_new(), xj_jkey_cmp(), xj_jkey_free_p(), xj_manage_jab(), xj_pres_cell_free(), xj_pres_cell_init(), xj_pres_cell_new(), xj_pres_list_add(), xj_pres_list_check(), xj_pres_list_del(), xj_pres_list_free(), xj_pres_list_init(), xj_pres_list_notifyall(), xj_register_watcher(), xj_sipmsg_free(), xj_wlist_check(), xj_wlist_clean_jobs(), xj_wlist_del(), xj_wlist_free(), xj_wlist_get(), xj_wlist_init(), xj_wlist_set_aliases(), xj_wlist_set_flag(), xj_wlist_set_pid(), xj_worker_check_jcons(), xj_worker_check_qmsg(), xj_worker_check_watcher(), xj_worker_process(), xjab_manage_sipmsg(), xlog_fixup(), xml_parse_dateTime(), xml_publ_handl(), xmlDocGetNodeContentByName(), xmlNodeGetAttrByName(), xmlNodeGetAttrContentByName(), xmlNodeGetChildByName(), xmlNodeGetNodeByName(), xmlNodeGetNodeContentByName(), xmlrpc_close_async(), xmlrpc_server_abyss_add_method(), xmlrpc_server_abyss_add_method_w_doc(), xmlrpc_server_abyss_init(), xmlrpc_server_abyss_run(), xmpp_component_child_process(), xmpp_send_sip_msg(), xmpp_send_xmessage(), xmpp_send_xnotify(), xmpp_send_xpacket(), xmpp_send_xsubscribe(), xmpp_server_child_process(), xode_cmp(), xode_dup(), xode_dup_frompool(), xode_free(), xode_from_file(), xode_from_str(), xode_from_strx(), xode_get_attrib(), xode_get_data(), xode_get_datasz(), xode_get_firstattrib(), xode_get_firstchild(), xode_get_lastchild(), xode_get_name(), xode_get_nextsibling(), xode_get_parent(), xode_get_pool(), xode_get_prevsibling(), xode_get_tag(), xode_get_tagdata(), xode_get_type(), xode_get_vattrib(), xode_has_attribs(), xode_has_children(), xode_hide(), xode_hide_attrib(), xode_insert_cdata(), xode_insert_node(), xode_new(), xode_new_tag(), xode_pool_free(), xode_pool_malloc(), xode_pool_mallocx(), xode_pool_size(), xode_pool_strdup(), xode_put_attrib(), xode_put_vattrib(), xode_spool_add(), xode_spool_getlen(), xode_spool_getpool(), xode_spool_newfrompool(), xode_spool_str(), xode_spool_tostr(), xode_spooler(), xode_stream_eat(), xode_stream_new(), xode_strescape(), xode_strunescape(), xode_to_file(), xode_to_prettystr(), xode_wrap(), xr_parse_tree(), and xr_write_node().

#define O_BINARY   0

Definition at line 389 of file abyss.h.

Referenced by fileContainsText(), and ServerFileHandler().

#define O_TEXT   0

Definition at line 390 of file abyss.h.

#define SERVER_HTML_INFO   "<p><HR><b><i><a href=\"http:\057\057abyss.linuxave.net\">ABYSS Web Server</a></i></b> version "SERVER_VERSION"<br>&copy; <a href=\"mailto:mmoez@bigfoot.com\">Moez Mahfoudh</a> - 2000</p>"

Definition at line 92 of file abyss.h.

Referenced by ResponseError(), and sendDirectoryDocument().

#define SERVER_HVERSION   "ABYSS/0.3"

Definition at line 91 of file abyss.h.

Referenced by ResponseWriteStart().

#define SERVER_PLAIN_INFO

Value:

CRLF"--------------------------------------------------------------------------------"\
                     CRLF"ABYSS Web Server version "SERVER_VERSION CRLF"(C) Moez Mahfoudh - 2000"

Definition at line 93 of file abyss.h.

Referenced by sendDirectoryDocument().

#define SERVER_VERSION   "0.3"

Definition at line 90 of file abyss.h.

#define THREAD_ENTRYTYPE

Definition at line 229 of file abyss.h.

#define TIME_INFINITE   0xffffffff

Definition at line 319 of file abyss.h.

Referenced by socketWait().

#define TRUE   1

Definition at line 111 of file abyss.h.


Typedef Documentation

typedef int bool

Definition at line 142 of file abyss.h.

typedef unsigned char byte

Definition at line 137 of file abyss.h.

typedef short int16

Definition at line 135 of file abyss.h.

typedef int int32

Definition at line 132 of file abyss.h.

typedef long int64

Definition at line 129 of file abyss.h.

typedef char int8

Definition at line 139 of file abyss.h.

typedef void*(* PTHREAD_START_ROUTINE)(void *)

Definition at line 238 of file abyss.h.

typedef struct _TConn TConn

typedef struct tm TDate

Definition at line 528 of file abyss.h.

typedef int TFile

Definition at line 437 of file abyss.h.

typedef struct finddata_t TFileInfo

typedef struct stat TFileStat

Definition at line 419 of file abyss.h.

typedef struct in_addr TIPAddr

Definition at line 327 of file abyss.h.

typedef pthread_mutex_t TMutex

Definition at line 256 of file abyss.h.

typedef struct _TPoolZone TPoolZone

typedef uint32 TSocket

Definition at line 324 of file abyss.h.

typedef pthread_t TThread

Definition at line 237 of file abyss.h.

typedef uint32(THREAD_ENTRYTYPE * TThreadProc)(void *)

Definition at line 233 of file abyss.h.

typedef unsigned short uint16

Definition at line 134 of file abyss.h.

typedef unsigned int uint32

Definition at line 131 of file abyss.h.

typedef unsigned long uint64

Definition at line 128 of file abyss.h.

typedef unsigned char uint8

Definition at line 138 of file abyss.h.

typedef bool(* URIHandler)(TSession *)

Definition at line 644 of file abyss.h.


Enumeration Type Documentation

enum TMethod

Enumerator:
m_unknown 
m_get 
m_put 
m_head 
m_post 
m_delete 
m_trace 
m_options 

Definition at line 552 of file abyss.h.


Function Documentation

void Base64Encode ( char *  s,
char *  d 
)

Definition at line 590 of file abyss_response.c.

Referenced by RequestAuth().

bool BufferAlloc ( TBuffer buf,
uint32  memsize 
)

Referenced by BufferRealloc(), and StringAlloc().

void BufferFree ( TBuffer buf  ) 

Definition at line 236 of file abyss_data.c.

References TBuffer::data, TBuffer::size, and TBuffer::staticid.

Referenced by BufferRealloc(), and StringFree().

bool BufferRealloc ( TBuffer buf,
uint32  memsize 
)

Referenced by StringBlockConcat(), and StringConcat().

bool ConfReadMIMETypes ( char *  filename  ) 

bool ConfReadServerFile ( char *  filename,
TServer srv 
)

TConn* ConnAlloc (  ) 

bool ConnCreate ( TConn c,
TSocket s,
void(*)(TConn *)  func 
)

Referenced by serverRun2(), and serverRunConn().

void ConnFree ( TConn c  ) 

bool ConnKill ( TConn c  ) 

Definition at line 211 of file abyss_conn.c.

bool ConnProcess ( TConn c  ) 

Definition at line 171 of file abyss_conn.c.

Referenced by serverRun2(), and serverRunConn().

bool ConnRead ( TConn c,
uint32  timems 
)

void ConnReadInit ( TConn c  ) 

Definition at line 219 of file abyss_conn.c.

Referenced by serverFunc(), and SessionRefillBuffer().

bool ConnReadLine ( TConn c,
char **  z,
uint32  timems 
)

bool ConnWrite ( TConn c,
void *  buffer,
uint32  size 
)

bool ConnWriteFromFile ( TConn c,
TFile file,
uint64  start,
uint64  end,
void *  buffer,
uint32  buffersize,
uint32  rate 
)

Referenced by sendBody().

int32 DateCompare ( TDate d1,
TDate d2 
)

Definition at line 169 of file abyss_date.c.

Referenced by fileDate(), ServerDirectoryHandler(), and ServerFileHandler().

bool DateDecode ( char *  s,
TDate tm 
)

bool DateFromGMT ( TDate d,
time_t  t 
)

Definition at line 186 of file abyss_date.c.

Referenced by DateFromLocal(), and DateInit().

bool DateFromLocal ( TDate d,
time_t  t 
)

Definition at line 198 of file abyss_date.c.

Referenced by DateToLogString(), and fileDate().

bool DateInit (  ) 

bool DateToLogString ( TDate tm,
char *  s 
)

Definition at line 77 of file abyss_date.c.

Referenced by SessionLog().

bool DateToString ( TDate tm,
char *  s 
)

Definition at line 60 of file abyss_date.c.

Referenced by addDateHeader(), ServerDirectoryHandler(), and ServerFileHandler().

bool FileClose ( TFile f  ) 

void FileFindClose ( TFileFind filefind  ) 

Definition at line 231 of file abyss_file.c.

Referenced by generateListing().

bool FileFindFirst ( TFileFind filefind,
char *  path,
TFileInfo fileinfo 
)

Referenced by generateListing().

bool FileFindNext ( TFileFind filefind,
TFileInfo fileinfo 
)

Definition at line 177 of file abyss_file.c.

Referenced by FileFindFirst(), and generateListing().

bool FileOpen ( TFile f,
char *  name,
uint32  attrib 
)

bool FileOpenCreate ( TFile f,
char *  name,
uint32  attrib 
)

Referenced by logOpen(), and parsePidfile().

int32 FileRead ( TFile f,
void *  buffer,
uint32  len 
)

bool FileSeek ( TFile f,
uint64  pos,
uint32  attrib 
)

Referenced by ConnWriteFromFile().

uint64 FileSize ( TFile f  ) 

Definition at line 100 of file abyss_file.c.

Referenced by ServerFileHandler().

bool FileStat ( char *  filename,
TFileStat filestat 
)

bool FileWrite ( TFile f,
void *  buffer,
uint32  len 
)

Referenced by LogWrite(), and ServerDaemonize().

int32 HTTPRead ( TSession s,
char *  buffer,
uint32  len 
)

char* HTTPReasonByStatus ( uint16  status  ) 

bool HTTPWrite ( TSession s,
char *  buffer,
uint32  len 
)

bool HTTPWriteEnd ( TSession s  ) 

bool ListAdd ( TList sl,
void *  str 
)

bool ListAddFromString ( TList list,
char *  c 
)

Referenced by processHeader().

bool ListFindString ( TList sl,
char *  str,
uint16 index 
)

Referenced by mimeTypeAdd(), and mimeTypeFromExt().

void ListFree ( TList sl  ) 

void ListInit ( TList sl  ) 

Definition at line 52 of file abyss_data.c.

Referenced by generateListing(), MIMETypeCreate(), and RequestInit().

void ListInitAutoFree ( TList sl  ) 

Definition at line 59 of file abyss_data.c.

Referenced by createServer().

void LogClose ( TServer srv  ) 

bool LogOpen ( TServer srv,
char *  filename 
)

void LogWrite ( TServer srv,
char *  c 
)

Referenced by SessionLog().

bool MIMETypeAdd ( char *  type,
char *  ext 
)

char* MIMETypeFromExt ( char *  ext  ) 

char* MIMETypeFromFileName ( char *  filename  ) 

char* MIMETypeGuessFromFile ( char *  filename  ) 

void MIMETypeInit (  ) 

Definition at line 275 of file abyss_response.c.

References MIMETypeCreate(), and NULL.

Referenced by xmlrpc_process(), and xmlrpc_server_abyss_init().

bool MutexCreate ( TMutex m  ) 

Referenced by logOpen(), and PoolCreate().

void MutexFree ( TMutex m  ) 

Referenced by logClose(), and PoolCreate().

bool MutexLock ( TMutex m  ) 

Referenced by LogWrite(), and PoolAlloc().

bool MutexTryLock ( TMutex m  ) 

bool MutexUnlock ( TMutex m  ) 

Referenced by LogWrite(), and PoolAlloc().

void* PoolAlloc ( TPool p,
uint32  size 
)

Referenced by generateListing(), and PoolStrdup().

bool PoolCreate ( TPool p,
uint32  zonesize 
)

void PoolFree ( TPool p  ) 

Definition at line 612 of file abyss_data.c.

Referenced by MIMETypeDestroy(), and ServerDirectoryHandler().

char* PoolStrdup ( TPool p,
char *  s 
)

Referenced by mimeTypeAdd().

bool RangeDecode ( char *  str,
uint64  filesize,
uint64 start,
uint64 end 
)

Referenced by sendBody(), and ServerFileHandler().

bool RequestAuth ( TSession r,
char *  credential,
char *  user,
char *  pass 
)

Definition at line 611 of file abyss_http.c.

void RequestFree ( TSession r  ) 

Definition at line 111 of file abyss_http.c.

Referenced by processDataFromClient().

char* RequestHeaderValue ( TSession r,
char *  name 
)

void RequestInit ( TSession r,
TConn c 
)

Definition at line 81 of file abyss_http.c.

Referenced by processDataFromClient().

bool RequestRead ( TSession r  ) 

Definition at line 484 of file abyss_http.c.

Referenced by processDataFromClient().

bool RequestUnescapeURI ( TSession r  ) 

bool RequestValidURI ( TSession r  ) 

Definition at line 556 of file abyss_http.c.

Referenced by processDataFromClient().

bool RequestValidURIPath ( TSession r  ) 

Definition at line 573 of file abyss_http.c.

Referenced by ServerDefaultHandlerFunc().

bool ResponseAddField ( TSession r,
char *  name,
char *  value 
)

bool ResponseChunked ( TSession s  ) 

Definition at line 57 of file abyss_response.c.

References TSession::chunkedwrite, TSession::chunkedwritemode, and TRUE.

Referenced by sendXmlData(), and ServerDirectoryHandler().

bool ResponseContentLength ( TSession r,
uint64  len 
)

bool ResponseContentType ( TSession r,
char *  type 
)

void ResponseError ( TSession r  ) 

void ResponseStatus ( TSession r,
uint16  code 
)

void ResponseStatusErrno ( TSession r  ) 

Definition at line 104 of file abyss_response.c.

References ResponseStatus(), and ResponseStatusFromErrno().

Referenced by ServerDefaultHandlerFunc(), and ServerFileHandler().

void ResponseWrite ( TSession r  ) 

bool ServerAddHandler ( TServer srv,
URIHandler  handler 
)

Definition at line 1712 of file abyss_server.c.

References createHandler(), FALSE, TServer::handlers, ListAdd(), and NULL.

Referenced by xmlrpc_process().

bool ServerCreate ( TServer srv,
char *  name,
uint16  port,
char *  filespath,
char *  logfilename 
)

void ServerDefaultHandler ( TServer srv,
URIHandler  handler 
)

Definition at line 1734 of file abyss_server.c.

References TServer::defaulthandler, and ServerDefaultHandlerFunc().

Referenced by setHandlers(), and xmlrpc_process().

void ServerFree ( TServer srv  ) 

void ServerInit ( TServer srv  ) 

void ServerRun ( TServer srv  ) 

void ServerRunOnce ( TServer srv  ) 

bool SessionLog ( TSession s  ) 

bool SocketAccept ( TSocket s,
TSocket ns,
TIPAddr ip 
)

Referenced by serverRun2(), and ServerRunOnce().

uint32 SocketAvailableReadBytes ( TSocket s  ) 

Definition at line 241 of file abyss_socket.c.

Referenced by ConnRead().

bool SocketBind ( TSocket s,
TIPAddr addr,
uint16  port 
)

Referenced by createAndBindSocket().

bool SocketBlocking ( TSocket s,
bool  b 
)

bool SocketClose ( TSocket s  ) 

bool SocketConnect ( TSocket s,
TIPAddr addr,
uint16  port 
)

bool SocketCreate ( TSocket s  ) 

uint32 SocketError (  ) 

Referenced by serverRun2(), and ServerRunOnce().

bool SocketInit (  ) 

Definition at line 96 of file abyss_socket.c.

Referenced by createAndBindSocket().

bool SocketListen ( TSocket s,
uint32  backlog 
)

Referenced by ServerInit().

uint32 SocketPeek ( TSocket s,
char *  buffer,
uint32  len 
)

uint32 SocketRead ( TSocket s,
char *  buffer,
uint32  len 
)

Referenced by ConnRead().

uint32 SocketWait ( TSocket s,
bool  rd,
bool  wr,
uint32  timems 
)

Referenced by ConnRead().

uint32 SocketWrite ( TSocket s,
char *  buffer,
uint32  len 
)

Referenced by ConnWrite().

bool StringAlloc ( TString s  ) 

Definition at line 287 of file abyss_data.c.

References TString::buffer, BufferAlloc(), TBuffer::data, FALSE, TString::size, and TRUE.

Referenced by RequestInit().

bool StringBlockConcat ( TString s,
char *  s2,
char **  ref 
)

bool StringConcat ( TString s,
char *  s2 
)

char* StringData ( TString s  ) 

Definition at line 332 of file abyss_data.c.

References TString::buffer, and TBuffer::data.

void StringFree ( TString s  ) 

Definition at line 326 of file abyss_data.c.

References TString::buffer, BufferFree(), and TString::size.

Referenced by RequestFree().

bool TableAdd ( TTable t,
char *  name,
char *  value 
)

bool TableAddReplace ( TTable t,
char *  name,
char *  value 
)

char* TableFind ( TTable t,
char *  name 
)

Referenced by RequestHeaderValue().

bool TableFindIndex ( TTable t,
char *  name,
uint16 index 
)

Referenced by TableAddReplace(), and TableFind().

void TableFree ( TTable t  ) 

Definition at line 367 of file abyss_data.c.

Referenced by RequestFree().

void TableInit ( TTable t  ) 

Definition at line 361 of file abyss_data.c.

Referenced by RequestInit(), and TableFree().

void ThreadClose ( TThread t  ) 

bool ThreadCreate ( TThread t,
TThreadProc  func,
void *  arg 
)

Referenced by makeThread().

void ThreadExit ( TThread t,
int  ret_value 
)

Referenced by connJob().

bool ThreadKill ( TThread t  ) 

Referenced by ConnKill().

bool ThreadRun ( TThread t  ) 

Referenced by ConnProcess().

bool ThreadStop ( TThread t  ) 

void ThreadWait ( uint32  ms  ) 

void TraceExit ( char *  fmt,
  ... 
)

void TraceMsg ( char *  fmt,
  ... 
)


Generated on Thu May 17 10:00:33 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6