OpenTTD Source: src/network/core/http_none.cpp Source File

OpenTTD Source 15.3

http_none.cpp
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
12#include "../../stdafx.h"
13#include "../../debug.h"
14#include "../../rev.h"
15#include "../network_internal.h"
16
17#include "http.h"
18
19#include "../../safeguards.h"
20
21/* static */ void NetworkHTTPSocketHandler::Connect(std::string_view, HTTPCallback *callback, std::string&&)
22{
23 /* No valid HTTP backend was compiled in, so we fail all HTTP requests. */
24 callback->OnFailure();
25}
26
27/* static */ void NetworkHTTPSocketHandler::HTTPReceive()
28{
29}
30
31void NetworkHTTPInitialize()
32{
33}
34
35void NetworkHTTPUninitialize()
36{
37}
NetworkHTTPSocketHandler::Connect
static void Connect(std::string_view uri, HTTPCallback *callback, std::string &&data="")
Connect to the given URI.
Definition http_curl.cpp:93
NetworkHTTPSocketHandler::HTTPReceive
static void HTTPReceive()
Do the receiving for all HTTP connections.
Definition http_curl.cpp:107
http.h
Basic functions to send and receive HTTP packets.
NetworkHTTPInitialize
void NetworkHTTPInitialize()
Initialize the HTTP socket handler.
Definition http_curl.cpp:250
NetworkHTTPUninitialize
void NetworkHTTPUninitialize()
Uninitialize the HTTP socket handler.
Definition http_curl.cpp:285
HTTPCallback
Callback for when the HTTP handler has something to tell us.
Definition http.h:20
HTTPCallback::OnFailure
virtual void OnFailure()=0
An error has occurred and the connection has been closed.