ReactOS 0.4.16-dev-109-gf4cb10f
|
Go to the source code of this file.
Classes | |
struct | server_t |
struct | netconn_t |
struct | substr_t |
struct | req_file_t |
struct | object_vtbl_t |
struct | _object_header_t |
struct | appinfo_t |
struct | http_session_t |
struct | HTTPHEADERW |
struct | data_stream_t |
struct | netconn_stream_t |
struct | http_request_t |
struct | task_header_t |
struct | wininet_flag_info |
Macros | |
#define | INET_OPENURL 0x0001 |
#define | INET_CALLBACKW 0x0002 |
#define | INTERNET_HANDLE_IN_USE 1 |
#define | HDR_ISREQUEST 0x0001 |
#define | HDR_COMMADELIMITED 0x0002 |
#define | HDR_SEMIDELIMITED 0x0004 |
#define | READ_BUFFER_SIZE 8192 |
#define | MAX_REPLY_LEN 0x5B4 |
#define | _SECURITY_FLAG_CERT_REV_FAILED 0x00800000 |
#define | _SECURITY_FLAG_CERT_INVALID_CA 0x01000000 |
#define | _SECURITY_FLAG_CERT_INVALID_CN 0x02000000 |
#define | _SECURITY_FLAG_CERT_INVALID_DATE 0x04000000 |
#define | _SECURITY_ERROR_FLAGS_MASK |
Typedefs | |
typedef struct _object_header_t | object_header_t |
typedef struct HTTPHEADERW * | LPHTTPHEADERW |
typedef struct data_stream_vtbl_t | data_stream_vtbl_t |
typedef struct task_header_t | task_header_t |
typedef void(* | async_task_proc_t) (task_header_t *) |
Enumerations | |
enum | collect_type_t { COLLECT_TIMEOUT , COLLECT_CONNECTIONS , COLLECT_CLEANUP } |
enum | WH_TYPE { WH_HINIT = INTERNET_HANDLE_TYPE_INTERNET , WH_HFTPSESSION = INTERNET_HANDLE_TYPE_CONNECT_FTP , WH_HGOPHERSESSION = INTERNET_HANDLE_TYPE_CONNECT_GOPHER , WH_HHTTPSESSION = INTERNET_HANDLE_TYPE_CONNECT_HTTP , WH_HFILE = INTERNET_HANDLE_TYPE_FTP_FILE , WH_HFTPFINDNEXT = INTERNET_HANDLE_TYPE_FTP_FIND , WH_HHTTPREQ = INTERNET_HANDLE_TYPE_HTTP_REQUEST } |
Variables | |
HMODULE WININET_hModule | DECLSPEC_HIDDEN |
static void size_t | len |
#define _SECURITY_ERROR_FLAGS_MASK |
Definition at line 477 of file internet.h.
#define _SECURITY_FLAG_CERT_INVALID_CA 0x01000000 |
Definition at line 473 of file internet.h.
#define _SECURITY_FLAG_CERT_INVALID_CN 0x02000000 |
Definition at line 474 of file internet.h.
#define _SECURITY_FLAG_CERT_INVALID_DATE 0x04000000 |
Definition at line 475 of file internet.h.
#define _SECURITY_FLAG_CERT_REV_FAILED 0x00800000 |
Definition at line 472 of file internet.h.
#define HDR_COMMADELIMITED 0x0002 |
Definition at line 315 of file internet.h.
#define HDR_ISREQUEST 0x0001 |
Definition at line 314 of file internet.h.
#define HDR_SEMIDELIMITED 0x0004 |
Definition at line 316 of file internet.h.
#define INET_CALLBACKW 0x0002 |
Definition at line 244 of file internet.h.
#define INET_OPENURL 0x0001 |
Definition at line 243 of file internet.h.
#define INTERNET_HANDLE_IN_USE 1 |
Definition at line 269 of file internet.h.
#define MAX_REPLY_LEN 0x5B4 |
Definition at line 462 of file internet.h.
#define READ_BUFFER_SIZE 8192 |
Definition at line 341 of file internet.h.
typedef void(* async_task_proc_t) (task_header_t *) |
Definition at line 385 of file internet.h.
Definition at line 329 of file internet.h.
typedef struct HTTPHEADERW * LPHTTPHEADERW |
typedef struct _object_header_t object_header_t |
Definition at line 255 of file internet.h.
typedef struct task_header_t task_header_t |
Definition at line 384 of file internet.h.
Enumerator | |
---|---|
COLLECT_TIMEOUT | |
COLLECT_CONNECTIONS | |
COLLECT_CLEANUP |
Definition at line 59 of file internet.h.
Enumerator | |
---|---|
WH_HINIT | |
WH_HFTPSESSION | |
WH_HGOPHERSESSION | |
WH_HHTTPSESSION | |
WH_HFILE | |
WH_HFTPFINDNEXT | |
WH_HHTTPREQ |
Definition at line 232 of file internet.h.
|
inlinestatic |
void * alloc_async_task | ( | object_header_t * | hdr, |
async_task_proc_t | proc, | ||
size_t | size | ||
) |
Definition at line 3894 of file internet.c.
Referenced by async_read(), FtpCreateDirectoryW(), FtpDeleteFileW(), FTPFILE_QueryDataAvailable(), FtpFindFirstFileW(), FTPFINDNEXT_FindNextFileW(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpOpenFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), FtpSetCurrentDirectoryW(), HttpEndRequestW(), HttpSendRequestExW(), HttpSendRequestW(), and InternetOpenUrlW().
void * alloc_object | ( | object_header_t * | parent, |
const object_vtbl_t * | vtbl, | ||
size_t | size | ||
) |
Definition at line 103 of file internet.c.
Referenced by FTP_Connect(), FTP_FtpOpenFileW(), FTP_ReceiveFileList(), HTTP_Connect(), HTTP_HttpOpenRequestW(), and InternetOpenW().
Definition at line 379 of file netconnection.c.
Referenced by free_netconn(), and http_release_netconn().
BOOL collect_connections | ( | collect_type_t | collect_type | ) |
Definition at line 235 of file http.c.
Referenced by collect_connections_proc(), DllMain(), and INET_SetOption().
Definition at line 49 of file utility.c.
Referenced by HTTP_HttpQueryInfoW().
DWORD create_netconn | ( | server_t * | server, |
DWORD | security_flags, | ||
BOOL | mask_errors, | ||
DWORD | timeout, | ||
netconn_t ** | ret | ||
) |
Definition at line 347 of file netconnection.c.
Referenced by open_http_connection().
DWORD create_req_file | ( | const WCHAR * | file_name, |
req_file_t ** | ret | ||
) |
Definition at line 3988 of file internet.c.
Referenced by create_cache_entry().
Definition at line 943 of file http.c.
Referenced by InternetSetOptionW().
Definition at line 1269 of file cookie.c.
Referenced by delete_cookie(), DllMain(), InternetSetOptionW(), parse_cookie(), and set_cookies().
Definition at line 385 of file netconnection.c.
Referenced by collect_connections(), and open_http_connection().
Definition at line 4130 of file urlcache.c.
Referenced by DllMain().
HINTERNET FTP_Connect | ( | appinfo_t * | hIC, |
LPCWSTR | lpszServerName, | ||
INTERNET_PORT | nServerPort, | ||
LPCWSTR | lpszUserName, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwFlags, | ||
DWORD_PTR | dwContext, | ||
DWORD | dwInternalFlags | ||
) |
Definition at line 2428 of file ftp.c.
Referenced by INTERNET_InternetOpenUrlW(), and InternetConnectW().
Definition at line 646 of file cookie.c.
Referenced by HTTP_InsertCookies().
object_header_t * get_handle_object | ( | HINTERNET | hinternet | ) |
Definition at line 176 of file internet.c.
Referenced by FtpCommandW(), FtpCreateDirectoryW(), FtpDeleteFileW(), FtpFindFirstFileW(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpOpenFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), FtpSetCurrentDirectoryW(), HttpAddRequestHeadersW(), HttpEndRequestW(), HttpOpenRequestW(), HttpQueryInfoW(), HttpSendRequestExW(), HttpSendRequestW(), InternetCloseHandle(), InternetConnectW(), InternetErrorDlg(), InternetFindNextFileW(), InternetLockRequestFile(), InternetOpenUrlW(), InternetQueryDataAvailable(), InternetQueryOptionA(), InternetQueryOptionW(), InternetReadFile(), InternetReadFileExA(), InternetReadFileExW(), InternetSetOptionW(), InternetSetStatusCallbackA(), InternetSetStatusCallbackW(), and InternetWriteFile().
server_t * get_server | ( | substr_t | name, |
INTERNET_PORT | port, | ||
BOOL | is_https, | ||
BOOL | do_create | ||
) |
Definition at line 198 of file http.c.
Referenced by HTTP_DealWithProxy(), HTTP_HandleRedirect(), and HTTP_HttpOpenRequestW().
BOOL GetAddress | ( | const WCHAR * | name, |
INTERNET_PORT | port, | ||
SOCKADDR * | psa, | ||
int * | sa_len, | ||
char * | addr_str | ||
) |
Definition at line 133 of file utility.c.
Referenced by FTP_Connect(), HTTP_ResolveName(), and InternetCheckConnectionW().
Definition at line 168 of file internet.h.
Definition at line 184 of file internet.h.
Definition at line 149 of file internet.h.
Referenced by HttpAddRequestHeadersA(), InternetCrackUrlA(), InternetOpenUrlA(), and retrieve_cached_basic_authorization().
Definition at line 128 of file internet.h.
DWORD HTTP_Connect | ( | appinfo_t * | hIC, |
LPCWSTR | lpszServerName, | ||
INTERNET_PORT | nServerPort, | ||
LPCWSTR | lpszUserName, | ||
LPCWSTR | lpszPassword, | ||
DWORD | dwFlags, | ||
DWORD_PTR | dwContext, | ||
DWORD | dwInternalFlags, | ||
HINTERNET * | ret | ||
) |
Definition at line 5836 of file http.c.
Referenced by INTERNET_InternetOpenUrlW(), and InternetConnectW().
DWORD INET_QueryOption | ( | object_header_t * | hdr, |
DWORD | option, | ||
void * | buffer, | ||
DWORD * | size, | ||
BOOL | unicode | ||
) |
Definition at line 2654 of file internet.c.
Referenced by APPINFO_QueryOption(), FTPFILE_QueryOption(), FTPFINDNEXT_QueryOption(), FTPSESSION_QueryOption(), and HTTPSESSION_QueryOption().
DWORD INET_SetOption | ( | object_header_t * | hdr, |
DWORD | option, | ||
void * | buf, | ||
DWORD | size | ||
) |
Definition at line 2753 of file internet.c.
Referenced by APPINFO_SetOption(), HTTPREQ_SetOption(), HTTPSESSION_SetOption(), and set_global_option().
Definition at line 4112 of file urlcache.c.
Referenced by DllMain().
Definition at line 281 of file netconnection.c.
Referenced by create_netconn_socket(), FTP_Connect(), FTP_InitListenSocket(), InternetCheckConnectionW(), and InternetOpenW().
DWORD INTERNET_AsyncCall | ( | task_header_t * | task | ) |
Definition at line 3915 of file internet.c.
Referenced by async_read(), FtpCreateDirectoryW(), FtpDeleteFileW(), FTPFILE_QueryDataAvailable(), FtpFindFirstFileW(), FTPFINDNEXT_FindNextFileW(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpOpenFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), FtpSetCurrentDirectoryW(), HttpEndRequestW(), HttpSendRequestExW(), HttpSendRequestW(), and InternetOpenUrlW().
Definition at line 384 of file internet.c.
Referenced by HTTP_DealWithProxy().
Definition at line 3858 of file internet.c.
Referenced by FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetFileW(), FTP_FtpOpenFileW(), FTP_FtpPutFileW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_ReceiveRequestData(), HTTP_HandleRedirect(), and InternetConnectW().
Definition at line 3937 of file internet.c.
Referenced by FTP_DoPassive(), FTP_FtpGetCurrentDirectoryW(), FTP_GetNextLine(), and FTP_ReceiveResponse().
VOID INTERNET_SendCallback | ( | object_header_t * | hdr, |
DWORD_PTR | dwContext, | ||
DWORD | dwInternetStatus, | ||
LPVOID | lpvStatusInfo, | ||
DWORD | dwStatusInfoLength | ||
) |
Referenced by async_read_file_proc(), FTP_Connect(), FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetCurrentDirectoryW(), FTP_FtpGetFileW(), FTP_FtpOpenFileW(), FTP_FtpPutFileW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_FtpSetCurrentDirectoryW(), FTP_ReceiveRequestData(), FTP_ReceiveResponse(), FTPFINDNEXT_FindNextFileProc(), FTPSESSION_CloseConnection(), HTTP_Connect(), HTTP_HandleRedirect(), HTTP_HttpEndRequestW(), HTTP_HttpOpenRequestW(), HTTP_HttpSendRequestW(), http_release_netconn(), HTTP_ResolveName(), HTTPREQ_QueryDataAvailable(), HTTPREQ_ReadFile(), HTTPREQ_WriteFile(), open_http_connection(), send_request_complete(), and WININET_Release().
Definition at line 3837 of file internet.c.
Referenced by calc_url_length(), FTP_Connect(), FTP_FtpCreateDirectoryW(), FTP_FtpDeleteFileW(), FTP_FtpFindFirstFileW(), FTP_FtpGetCurrentDirectoryW(), FTP_FtpGetFileW(), FTP_FtpOpenFileW(), FTP_FtpPutFileW(), FTP_FtpRemoveDirectoryW(), FTP_FtpRenameFileW(), FTP_FtpSetCurrentDirectoryW(), FTP_GetNextLine(), FTP_ParseDirectory(), FTP_RetrieveFileData(), FTP_SendCommandA(), FTP_SetResponseError(), FtpCommandA(), FtpCommandW(), FtpCreateDirectoryW(), FtpDeleteFileW(), FtpFindFirstFileW(), FtpGetCurrentDirectoryA(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpOpenFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), FtpSetCurrentDirectoryW(), GetUrlCacheConfigInfoA(), GetUrlCacheConfigInfoW(), INTERNET_InternetOpenUrlW(), InternetCheckConnectionW(), InternetCreateUrlW(), InternetOpenW(), InternetReadFile(), InternetReadFileExA(), InternetReadFileExW(), and res_to_le().
Definition at line 374 of file netconnection.c.
Referenced by drain_content(), HTTP_GetResponseHeaders(), HTTP_HttpEndRequestW(), http_release_netconn(), HTTPREQ_QueryOption(), HTTPREQ_SetOption(), netconn_end_of_data(), netconn_read(), open_http_connection(), and WININET_InvalidCertificateDialog().
Definition at line 887 of file netconnection.c.
Referenced by get_security_cert_struct().
Definition at line 896 of file netconnection.c.
Referenced by get_security_cert_struct(), and netcon_secure_connect_setup().
Definition at line 876 of file netconnection.c.
Referenced by open_http_connection().
Definition at line 824 of file netconnection.c.
Referenced by chunked_read(), netconn_drain_content(), netconn_read(), and read_more_data().
Definition at line 604 of file netconnection.c.
Referenced by HTTP_HttpSendRequestW().
Definition at line 669 of file netconnection.c.
Referenced by HTTP_HttpSendRequestW(), and HTTPREQ_WriteFile().
Definition at line 910 of file netconnection.c.
Referenced by HTTP_GetResponseHeaders(), and HTTP_HttpSendRequestW().
Definition at line 407 of file netconnection.c.
Referenced by DllMain().
|
inlinestatic |
Definition at line 449 of file internet.h.
Referenced by HTTPREQ_LockRequestFile().
void req_file_release | ( | req_file_t * | req_file | ) |
Definition at line 4015 of file internet.c.
Referenced by create_cache_entry(), create_req_file(), HTTPREQ_Destroy(), and InternetUnlockRequestFile().
Definition at line 149 of file http.c.
Referenced by create_netconn(), get_server(), and NETCON_secure_connect().
Definition at line 154 of file http.c.
Referenced by collect_connections(), free_netconn(), HTTP_HandleRedirect(), HTTPREQ_Destroy(), InternetGetSecurityInfoByURLW(), and NETCON_secure_connect().
Definition at line 912 of file cookie.c.
Referenced by HTTP_ProcessCookies(), InternetSetCookieExW(), and record_cookies().
Definition at line 429 of file netconnection.c.
Referenced by NETCON_is_alive(), NETCON_recv(), netcon_secure_connect_setup(), and read_ssl_chunk().
Definition at line 418 of file netconnection.c.
Referenced by netcon_secure_connect_setup(), NETCON_send(), and send_ssl_chunk().
Definition at line 203 of file internet.h.
Referenced by cookie_parse_url(), get_cookie(), HTTP_DealWithProxy(), HTTP_HandleRedirect(), HTTP_ProcessCookies(), HTTP_ShouldBypassProxy(), InternetGetSecurityInfoByURLW(), InternetSetCookieExW(), load_persistent_cookie(), pbuf_strstr(), set_cookie(), and substrz().
Definition at line 209 of file internet.h.
Referenced by get_cookie_container(), get_cookie_header(), HTTP_HttpOpenRequestW(), HTTP_ProcessCookies(), InternetSetCookieExW(), IsDomainLegalCookieDomainW(), and replace_cookie().
object_header_t * WININET_AddRef | ( | object_header_t * | info | ) |
Definition at line 169 of file internet.c.
Referenced by alloc_async_task(), FTP_Connect(), FTP_FtpOpenFileW(), FTP_ReceiveFileList(), get_handle_object(), HTTP_Connect(), and HTTP_HttpOpenRequestW().
|
inlinestatic |
Definition at line 214 of file internet.h.
Referenced by FtpFindFirstFileA(), and InternetFindNextFileA().
BOOL WININET_Release | ( | object_header_t * | info | ) |
Definition at line 211 of file internet.c.
Referenced by FTP_Connect(), FtpCommandW(), FtpCreateDirectoryW(), FtpDeleteFileW(), FTPFILE_Destroy(), FtpFindFirstFileW(), FTPFINDNEXT_Destroy(), FtpGetCurrentDirectoryW(), FtpGetFileW(), FtpOpenFileW(), FtpPutFileW(), FtpRemoveDirectoryW(), FtpRenameFileW(), FTPSESSION_Destroy(), FtpSetCurrentDirectoryW(), HTTP_HttpOpenRequestW(), HttpAddRequestHeadersW(), HttpEndRequestW(), HttpOpenRequestW(), HttpQueryInfoW(), HTTPREQ_Destroy(), HttpSendRequestExW(), HttpSendRequestW(), HTTPSESSION_Destroy(), INTERNET_WorkerThreadFunc(), InternetCloseHandle(), InternetConnectW(), InternetErrorDlg(), InternetFindNextFileW(), InternetLockRequestFile(), InternetOpenUrlW(), InternetQueryDataAvailable(), InternetQueryOptionA(), InternetQueryOptionW(), InternetReadFile(), InternetReadFileExA(), InternetReadFileExW(), InternetSetOptionW(), InternetSetStatusCallbackA(), InternetSetStatusCallbackW(), InternetWriteFile(), and invalidate_handle().
|
extern |
Definition at line 289 of file d3dcompiler_private.h.
Definition at line 92 of file internet.h.
Referenced by heap_strdupAtoW(), heap_strndupAtoW(), and heap_strndupW().