Dillo v3.1.1-98-g318d1f14
|
Go to the source code of this file.
Functions | |
void | a_Http_freeall (void) |
Deallocate memory used by http module. | |
int | a_Http_init (void) |
Initialize proxy vars and Accept-Language header. | |
int | a_Http_proxy_auth (void) |
Tell whether the proxy auth is already set (user:password). | |
void | a_Http_set_proxy_passwd (const char *str) |
Activate entered proxy password for HTTP. | |
void | a_Http_connect_done (int fd, bool_t success) |
void | a_Http_ccc (int Op, int Branch, int Dir, ChainLink *Info, void *Data1, void *Data2) |
CCC function for the HTTP module. | |
void | a_IO_ccc (int Op, int Branch, int Dir, ChainLink *Info, void *Data1, void *Data2) |
CCC function for the IO module. | |
void | a_Dpi_ccc (int Op, int Branch, int Dir, ChainLink *Info, void *Data1, void *Data2) |
CCC function for the Dpi module. | |
char * | a_Dpi_send_blocking_cmd (const char *server_name, const char *cmd) |
Send a command to a dpi server, and block until the answer is got. | |
void | a_Dpi_dillo_exit (void) |
Let dpid know dillo is no longer running. | |
void | a_Dpi_init (void) |
void a_Dpi_ccc | ( | int | Op, |
int | Branch, | ||
int | Dir, | ||
ChainLink * | Info, | ||
void * | Data1, | ||
void * | Data2 | ||
) |
CCC function for the Dpi module.
Definition at line 646 of file dpi.c.
References a_Chain_bcb(), a_Chain_check(), a_Chain_fcb(), a_Chain_link_new(), a_Dpi_ccc(), a_IO_ccc(), BCK, dFree(), dNew, Dpi_blocking_start_dpid(), Dpi_conn_free(), Dpi_conn_new(), Dpi_connect_socket(), Dpi_process_dbuf(), dReturn_if_fail, FWD, IORead, ChainLink::LocalKey, MSG_ERR, MSG_WARN, OpAbort, OpEnd, OpSend, and OpStart.
Referenced by a_Capi_ccc(), and a_Dpi_ccc().
void a_Dpi_dillo_exit | ( | void | ) |
char * a_Dpi_send_blocking_cmd | ( | const char * | server_name, |
const char * | cmd | ||
) |
Send a command to a dpi server, and block until the answer is got.
Return value: the dpip tag answer as an string, NULL on error.
Definition at line 770 of file dpi.c.
References dClose(), Dpi_blocking_read(), Dpi_blocking_read(), Dpi_blocking_start_dpid(), Dpi_blocking_start_dpid(), Dpi_blocking_write(), Dpi_blocking_write(), Dpi_close_fd(), Dpi_connect_socket(), Dpi_connect_socket(), and MSG_ERR.
Referenced by a_Cookies_get_query(), a_Cookies_get_query(), a_Cookies_set(), and a_Cookies_set().
void a_Http_ccc | ( | int | Op, |
int | Branch, | ||
int | Dir, | ||
ChainLink * | Info, | ||
void * | Data1, | ||
void * | Data2 | ||
) |
CCC function for the HTTP module.
Definition at line 883 of file http.c.
References _MSG, a_Chain_bcb(), a_Chain_bfcb(), a_Chain_check(), a_Chain_fcb(), a_Chain_link_new(), a_Http_ccc(), a_IO_ccc(), a_Klist_get_data(), a_Tls_connect(), BCK, DataBuf::Buf, dFree(), dList_find_custom(), dReturn_if_fail, dStr_append(), dStr_free(), fd_map, FWD, Http_fd_map_cmp(), Http_get(), Http_sock_new(), Http_socket_free(), Http_socket_reuse(), INT2VOIDP, ChainLink::LocalKey, MSG, MSG_BW, MSG_WARN, OpAbort, OpEnd, OpSend, OpStart, URL_HOST, URL_STR, ValidSocks, and VOIDP2INT.
Referenced by a_Capi_ccc(), and a_Http_ccc().
void a_Http_connect_done | ( | int | fd, |
bool_t | success | ||
) |
Definition at line 214 of file http.c.
References a_Chain_bfcb(), a_Klist_get_data(), a_Web_valid(), dClose(), dFree(), dList_find_custom(), fd_map, Http_fd_map_cmp(), Http_send_query(), Http_socket_free(), INT2VOIDP, ChainLink::LocalKey, MSG, MSG_BW, OpAbort, OpSend, ValidSocks, and VOIDP2INT.
Referenced by a_Tls_mbedtls_connect(), a_Tls_openssl_connect(), Http_connect_socket(), Http_connect_socket_cb(), Http_socket_reuse(), Tls_connect(), and Tls_handshake().
|
extern |
Deallocate memory used by http module.
(Call this one at exit time)
Definition at line 1128 of file http.c.
References a_Klist_free(), a_Url_free(), dFree(), Http_fd_map_remove_all(), HTTP_Language_hdr, HTTP_Proxy, HTTP_Proxy_Auth_base64, Http_servers_remove_all(), and ValidSocks.
Referenced by main().
int a_Http_init | ( | void | ) |
Initialize proxy vars and Accept-Language header.
Definition at line 118 of file http.c.
References a_Url_dup(), a_Url_new(), dList_new(), dStrconcat(), dStrdup(), fd_map, DilloPrefs::http_language, HTTP_Language_hdr, HTTP_Proxy, DilloPrefs::http_proxy, prefs, and servers.
Referenced by main().
int a_Http_proxy_auth | ( | void | ) |
Tell whether the proxy auth is already set (user:password).
Return: 1 Yes, 0 No
Definition at line 148 of file http.c.
References HTTP_Proxy_Auth_base64.
Referenced by main().
void a_Http_set_proxy_passwd | ( | const char * | str | ) |
Activate entered proxy password for HTTP.
Definition at line 156 of file http.c.
References a_Misc_encode_base64(), dFree(), dStrconcat(), HTTP_Proxy_Auth_base64, DilloPrefs::http_proxyuser, and prefs.
Referenced by main().
void a_IO_ccc | ( | int | Op, |
int | Branch, | ||
int | Dir, | ||
ChainLink * | Info, | ||
void * | Data1, | ||
void * | Data2 | ||
) |
CCC function for the IO module.
( Data1 = IOData_t* ; Data2 = NULL )
Definition at line 359 of file IO.c.
References a_Chain_check(), a_Chain_dbuf_new(), a_Chain_fcb(), BCK, DataBuf::Buf, dFree(), dReturn_if_fail, dStr_append_l(), dStr_printable(), IO_close_fd(), IO_free(), IO_new(), IO_StopRd, IO_StopRdWr, IO_StopWr, IO_submit(), IORead, IOWrite, ChainLink::LocalKey, MSG, MSG_WARN, OpAbort, OpEnd, OpSend, OpStart, and DataBuf::Size.
Referenced by a_Dpi_ccc(), a_Http_ccc(), IO_fd_read_cb(), IO_fd_write_cb(), and IO_read().