OpenTTD Source: src/network/core/http_winhttp.cpp File Reference

OpenTTD Source 14.0-RC3

Data Structures | Functions | Variables
http_winhttp.cpp File Reference
`#include "../../stdafx.h"`
`#include "../../debug.h"`
`#include "../../rev.h"`
`#include "../network_internal.h"`
`#include "http.h"`
`#include "http_shared.h"`
`#include <mutex>`
`#include <winhttp.h>`
`#include "../../safeguards.h"`

Go to the source code of this file.

## Data Structures
class | NetworkHTTPRequest
| Single HTTP request. More...

## Functions
static std::string | GetLastErrorAsString ()
static void CALLBACK | StaticWinHttpCallback (HINTERNET, DWORD_PTR context, DWORD code, void *info, DWORD length)
void | NetworkHTTPInitialize ()
| Initialize the HTTP socket handler.
void | NetworkHTTPUninitialize ()
| Uninitialize the HTTP socket handler.

## Variables
static HINTERNET | _winhttp_session = nullptr
static std::vector< NetworkHTTPRequest * > | _http_requests
static std::vector< NetworkHTTPRequest * > | _new_http_requests
static std::mutex | _new_http_requests_mutex
static std::vector< HTTPThreadSafeCallback * > | _http_callbacks
static std::vector< HTTPThreadSafeCallback * > | _new_http_callbacks
static std::mutex | _http_callback_mutex
static std::mutex | _new_http_callback_mutex

## Detailed Description

WinHTTP-based implementation for HTTP requests.

Definition in file http_winhttp.cpp.