Dillo v3.1.1-98-g318d1f14
Loading...
Searching...
No Matches
Url.h File Reference
#include "../chain.h"
#include "../url.h"
#include "../../dlib/dlib.h"
Include dependency graph for Url.h:
This graph shows which files directly or indirectly include this file:

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)
 

Function Documentation

◆ a_Dpi_ccc()

void a_Dpi_ccc ( int  Op,
int  Branch,
int  Dir,
ChainLink Info,
void *  Data1,
void *  Data2 
)

◆ a_Dpi_dillo_exit()

void a_Dpi_dillo_exit ( void  )

Let dpid know dillo is no longer running.

Note: currently disabled. It may serve to let the cookies dpi know when to expire session cookies.

Definition at line 761 of file dpi.c.

◆ a_Dpi_init()

void a_Dpi_init ( void  )

Definition at line 84 of file dpi.c.

Referenced by main().

◆ a_Dpi_send_blocking_cmd()

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().

◆ a_Http_ccc()

◆ a_Http_connect_done()

◆ a_Http_freeall()

void a_Http_freeall ( void  )
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().

◆ a_Http_init()

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().

◆ a_Http_proxy_auth()

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().

◆ a_Http_set_proxy_passwd()

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().

◆ a_IO_ccc()

void a_IO_ccc ( int  Op,
int  Branch,
int  Dir,
ChainLink Info,
void *  Data1,
void *  Data2 
)