aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Loading...
Searching...
No Matches
L4Proxy.h
Go to the documentation of this file.
1#pragma once
2
8#include <aws/crt/Types.h>
9
10struct aws_l4_proxy_config;
11
12namespace Aws
13{
14 namespace Crt
15 {
16 namespace Io
17 {
18 class Socks5ProxyOptions;
19
25 {
26 public:
27 L4ProxyConfig() noexcept = delete;
28 L4ProxyConfig(const L4ProxyConfig &rhs) noexcept = delete;
29 L4ProxyConfig(L4ProxyConfig &&rhs) noexcept = delete;
30 L4ProxyConfig &operator=(const L4ProxyConfig &rhs) noexcept = delete;
31 L4ProxyConfig &operator=(L4ProxyConfig &&rhs) noexcept = delete;
32
34
42 static std::shared_ptr<L4ProxyConfig> newSocks5ProxyConfig(
43 const Socks5ProxyOptions &options,
44 Allocator *allocator = ApiAllocator());
45
52 struct aws_l4_proxy_config *get() const noexcept { return m_l4ProxyConfig; }
53
54 private:
55 L4ProxyConfig(struct aws_l4_proxy_config *l4_proxy_config);
56
57 struct aws_l4_proxy_config *m_l4ProxyConfig;
58 };
59 } // namespace Io
60 } // namespace Crt
61} // namespace Aws
#define AWS_CRT_CPP_API
Definition Exports.h:36
Definition L4Proxy.h:25
L4ProxyConfig() noexcept=delete
Definition Socks5.h:129
aws_allocator Allocator
Definition Allocator.h:14
Definition Allocator.h:11
Definition StringView.h:862