|
ReactOS 0.4.17-dev-1190-g4c812f4
|


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 0x1000 |
| #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 |
| #define _SECURITY_ERROR_FLAGS_MASK |
Definition at line 445 of file internet.h.
| #define _SECURITY_FLAG_CERT_INVALID_CA 0x01000000 |
Definition at line 441 of file internet.h.
| #define _SECURITY_FLAG_CERT_INVALID_CN 0x02000000 |
Definition at line 442 of file internet.h.
| #define _SECURITY_FLAG_CERT_INVALID_DATE 0x04000000 |
Definition at line 443 of file internet.h.
| #define _SECURITY_FLAG_CERT_REV_FAILED 0x00800000 |
Definition at line 440 of file internet.h.
| #define HDR_COMMADELIMITED 0x0002 |
Definition at line 283 of file internet.h.
| #define HDR_ISREQUEST 0x0001 |
Definition at line 282 of file internet.h.
| #define HDR_SEMIDELIMITED 0x0004 |
Definition at line 284 of file internet.h.
| #define INET_CALLBACKW 0x0002 |
Definition at line 210 of file internet.h.
| #define INET_OPENURL 0x0001 |
Definition at line 209 of file internet.h.
| #define INTERNET_HANDLE_IN_USE 1 |
Definition at line 236 of file internet.h.
| #define MAX_REPLY_LEN 0x1000 |
Definition at line 430 of file internet.h.
| #define READ_BUFFER_SIZE 8192 |
Definition at line 309 of file internet.h.
| typedef void(* async_task_proc_t) (task_header_t *) |
Definition at line 353 of file internet.h.
Definition at line 297 of file internet.h.
| typedef struct HTTPHEADERW * LPHTTPHEADERW |
| typedef struct _object_header_t object_header_t |
Definition at line 221 of file internet.h.
| typedef struct task_header_t task_header_t |
Definition at line 352 of file internet.h.
| Enumerator | |
|---|---|
| COLLECT_TIMEOUT | |
| COLLECT_CONNECTIONS | |
| COLLECT_CLEANUP | |
Definition at line 58 of file internet.h.
| Enumerator | |
|---|---|
| WH_HINIT | |
| WH_HFTPSESSION | |
| WH_HGOPHERSESSION | |
| WH_HHTTPSESSION | |
| WH_HFILE | |
| WH_HFTPFINDNEXT | |
| WH_HHTTPREQ | |
Definition at line 198 of file internet.h.
| void * alloc_async_task | ( | object_header_t * | hdr, |
| async_task_proc_t | proc, | ||
| size_t | size | ||
| ) |
Definition at line 4513 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 124 of file internet.c.
Referenced by FTP_Connect(), FTP_FtpOpenFileW(), FTP_ReceiveFileList(), HTTP_Connect(), HTTP_HttpOpenRequestW(), and InternetOpenW().
Definition at line 380 of file netconnection.c.
Referenced by free_netconn(), and http_release_netconn().
| BOOL collect_connections | ( | collect_type_t | collect_type | ) |
Definition at line 229 of file http.c.
Referenced by collect_connections_proc(), DllMain(), and INET_SetOption().
| DWORD create_netconn | ( | server_t * | server, |
| DWORD | security_flags, | ||
| BOOL | mask_errors, | ||
| DWORD | timeout, | ||
| netconn_t ** | ret | ||
| ) |
Definition at line 348 of file netconnection.c.
Referenced by open_http_connection().
| DWORD create_req_file | ( | const WCHAR * | file_name, |
| req_file_t ** | ret | ||
| ) |
Definition at line 4607 of file internet.c.
Referenced by create_cache_entry().
Definition at line 926 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 386 of file netconnection.c.
Referenced by collect_connections(), and open_http_connection().
Definition at line 4124 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 2430 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 209 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(), InternetSetFilePointer(), InternetSetOptionW(), InternetSetStatusCallbackA(), InternetSetStatusCallbackW(), and InternetWriteFile().
| server_t * get_server | ( | substr_t | name, |
| INTERNET_PORT | port, | ||
| BOOL | is_https, | ||
| BOOL | do_create | ||
| ) |
Definition at line 192 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 47 of file utility.c.
Referenced by DECLARE_INTERFACE_(), FTP_Connect(), HTTP_ResolveName(), and InternetCheckConnectionW().
| 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 5910 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 3159 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 3309 of file internet.c.
Referenced by APPINFO_SetOption(), HTTPREQ_SetOption(), HTTPSESSION_SetOption(), and set_global_option().
Definition at line 4106 of file urlcache.c.
Referenced by DllMain().
Definition at line 55 of file dpnet_main.c.
Referenced by create_netconn_socket(), FTP_Connect(), FTP_InitListenSocket(), IDirectPlay8ClientImpl_Initialize(), IDirectPlay8LobbiedApplicationImpl_Initialize(), IDirectPlay8PeerImpl_Initialize(), IDirectPlay8ServerImpl_Initialize(), InternetCheckConnectionW(), InternetOpenW(), and lobbyclient_Initialize().
| DWORD INTERNET_AsyncCall | ( | task_header_t * | task | ) |
Definition at line 4534 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 511 of file internet.c.
Referenced by HTTP_DealWithProxy().
Definition at line 4477 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 4556 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 4456 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 375 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 886 of file netconnection.c.
Referenced by get_security_cert_struct().
Definition at line 895 of file netconnection.c.
Referenced by get_security_cert_struct(), and netcon_secure_connect_setup().
Definition at line 875 of file netconnection.c.
Referenced by open_http_connection().
Definition at line 823 of file netconnection.c.
Referenced by chunked_read(), netconn_drain_content(), netconn_read(), and read_more_data().
Definition at line 603 of file netconnection.c.
Referenced by HTTP_HttpSendRequestW().
Definition at line 668 of file netconnection.c.
Referenced by HTTP_HttpSendRequestW(), and HTTPREQ_WriteFile().
Definition at line 909 of file netconnection.c.
Referenced by HTTP_GetResponseHeaders(), and HTTP_HttpSendRequestW().
Definition at line 408 of file netconnection.c.
Referenced by DllMain().
|
inlinestatic |
Definition at line 417 of file internet.h.
Referenced by HTTPREQ_LockRequestFile().
| void req_file_release | ( | req_file_t * | req_file | ) |
Definition at line 4634 of file internet.c.
Referenced by create_cache_entry(), create_req_file(), HTTPREQ_Destroy(), and InternetUnlockRequestFile().
Definition at line 143 of file http.c.
Referenced by create_netconn(), get_server(), and NETCON_secure_connect().
Definition at line 148 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 430 of file netconnection.c.
Referenced by NETCON_is_alive(), NETCON_recv(), netcon_secure_connect_setup(), and read_ssl_chunk().
Definition at line 419 of file netconnection.c.
Referenced by netcon_secure_connect_setup(), NETCON_send(), and send_ssl_chunk().
Definition at line 134 of file internet.h.
Definition at line 150 of file internet.h.
Definition at line 112 of file internet.h.
Referenced by HttpAddRequestHeadersA(), InternetCrackUrlA(), InternetOpenUrlA(), and retrieve_cached_basic_authorization().
Definition at line 91 of file internet.h.
Definition at line 169 of file internet.h.
Referenced by _wcscats(), cookie_parse_url(), get_cookie(), HTTP_DealWithProxy(), HTTP_HandleRedirect(), HTTP_ProcessCookies(), HTTP_ShouldBypassProxy(), InternetGetSecurityInfoByURLW(), InternetSetCookieExW(), load_persistent_cookie(), pbuf_strstr(), set_cookie(), substrz(), and test_substring().
Definition at line 175 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 202 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 180 of file internet.h.
Referenced by FtpFindFirstFileA(), and InternetFindNextFileA().
| BOOL WININET_Release | ( | object_header_t * | info | ) |
Definition at line 244 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(), InternetSetFilePointer(), InternetSetOptionW(), InternetSetStatusCallbackA(), InternetSetStatusCallbackW(), InternetWriteFile(), and invalidate_handle().
|
extern |
Definition at line 71 of file internet.c.
Referenced by collect_connections_proc(), DllMain(), http_release_netconn(), HTTPREQ_QueryOption(), InternetErrorDlg(), InternetGetConnectedStateExW(), and WININET_InvalidCertificateDialog().