Audacity 3.2.0
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
audacity::network_manager Namespace Reference

Namespaces

namespace  anonymous_namespace{CurlHandleManager.cpp}
 
namespace  anonymous_namespace{CurlResponse.cpp}
 
namespace  anonymous_namespace{CurlResponseFactory.cpp}
 
namespace  anonymous_namespace{MultipartData.cpp}
 
namespace  anonymous_namespace{RequestPayload.cpp}
 
namespace  common_content_types
 
namespace  common_headers
 
namespace  HttpCode
 

Classes

struct  Cookie
 
class  CookiesList
 
class  CurlHandleManager
 
class  CurlResponse
 
class  CurlResponseFactory
 
class  CurlStringList
 
struct  Header
 
class  HeadersList
 
class  IResponse
 Interface, that provides access to the data from the HTTP response. More...
 
class  IResponseFactory
 
class  MultipartData
 
class  NetworkManager
 
class  Request
 
class  RequestPayloadStream
 

Typedefs

using ResponsePtr = std::shared_ptr< IResponse >
 
using ExpiresTime = std::chrono::system_clock::time_point
 
using RequestPayloadStreamPtr = std::shared_ptr< RequestPayloadStream >
 

Enumerations

enum class  NetworkError {
  NoError , BadURL , ConnectionFailed , ConnectionRefused ,
  RemoteHostClosed , HostNotFound , Timeout , OperationCancelled ,
  SSLHandshakeFailed , TooManyRedirects , ProxyConnectionFailed , ProxyNotFound ,
  UnknownError , HTTPError
}
 
enum class  RequestVerb {
  Head , Get , Post , Put ,
  Delete , Patch
}
 

Functions

RequestPayloadStreamPtr CreateRequestPayloadStream (const void *data, int64_t size, bool copyData)
 
RequestPayloadStreamPtr CreateRequestPayloadStream ()
 
RequestPayloadStreamPtr CreateRequestPayloadStream (const std::string &filePath)
 

Variables

constexpr decltype(std::thread::hardware_concurrency()) MIN_CURL_THREADS = 6
 

Detailed Description


Audacity: A Digital Audio Editor

NetworkUtils.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

MissingBlocksUploader.h

Dmitry Vedenko


Audacity: A Digital Audio Editor

RemoteProjectSnapshot.h

Dmitry Vedenko

Typedef Documentation

◆ ExpiresTime

using audacity::network_manager::ExpiresTime = typedef std::chrono::system_clock::time_point

Definition at line 24 of file CookiesList.h.

◆ RequestPayloadStreamPtr

Definition at line 33 of file CurlResponse.h.

◆ ResponsePtr

Definition at line 30 of file RemoteProjectSnapshot.h.

Enumeration Type Documentation

◆ NetworkError

Enumerator
NoError 
BadURL 
ConnectionFailed 
ConnectionRefused 
RemoteHostClosed 
HostNotFound 
Timeout 
OperationCancelled 
SSLHandshakeFailed 
TooManyRedirects 
ProxyConnectionFailed 
ProxyNotFound 
UnknownError 
HTTPError 

Definition at line 31 of file IResponse.h.

◆ RequestVerb

Enumerator
Head 
Get 
Post 
Put 
Delete 
Patch 

Definition at line 31 of file IResponseFactory.h.

Function Documentation

◆ CreateRequestPayloadStream() [1/3]

NETWORK_MANAGER_API RequestPayloadStreamPtr audacity::network_manager::CreateRequestPayloadStream ( )

Definition at line 189 of file RequestPayload.cpp.

190{
191 return std::make_shared<EmptyRequestPayloadStream>();
192}

◆ CreateRequestPayloadStream() [2/3]

NETWORK_MANAGER_API RequestPayloadStreamPtr audacity::network_manager::CreateRequestPayloadStream ( const std::string &  filePath)

Definition at line 194 of file RequestPayload.cpp.

195{
196 return std::make_shared<FileRequestPayloadStream>(filePath);
197}

◆ CreateRequestPayloadStream() [3/3]

NETWORK_MANAGER_API RequestPayloadStreamPtr audacity::network_manager::CreateRequestPayloadStream ( const void *  data,
int64_t  size,
bool  copyData 
)

Definition at line 184 of file RequestPayload.cpp.

185{
186 return std::make_shared<MemoryRequestPayloadStream>(data, size, copyData);
187}

References size.

Referenced by audacity::network_manager::NetworkManager::doPatch(), audacity::network_manager::NetworkManager::doPost(), audacity::network_manager::NetworkManager::doPut(), and audacity::cloud::audiocom::sync::DataUploader::UploadOperation::PerformUpload().

Here is the caller graph for this function:

Variable Documentation

◆ MIN_CURL_THREADS

constexpr decltype(std::thread::hardware_concurrency ()) audacity::network_manager::MIN_CURL_THREADS = 6
constexpr

Definition at line 126 of file CurlResponseFactory.cpp.