Monero
Toggle main menu visibility
Loading...
Searching...
No Matches
src
net
fwd.h
Go to the documentation of this file.
1
// Copyright (c) 2018-2022, The Monero Project
2
3
//
4
// All rights reserved.
5
//
6
// Redistribution and use in source and binary forms, with or without modification, are
7
// permitted provided that the following conditions are met:
8
//
9
// 1. Redistributions of source code must retain the above copyright notice, this list of
10
// conditions and the following disclaimer.
11
//
12
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
13
// of conditions and the following disclaimer in the documentation and/or other
14
// materials provided with the distribution.
15
//
16
// 3. Neither the name of the copyright holder nor the names of its contributors may be
17
// used to endorse or promote products derived from this software without specific
18
// prior written permission.
19
//
20
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
21
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
22
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
23
// THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
25
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
27
// STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
28
// THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30
#pragma once
31
32
#include <cstdint>
33
34
namespace
net
35
{
36
enum class
error
: int;
37
struct
scheme_and_authority
;
38
class
tor_address
;
39
struct
uri_components
;
40
struct
user_and_pass
;
41
struct
userinfo_and_hostport
;
42
class
i2p_address
;
43
44
namespace
socks
45
{
46
class
client
;
47
template
<
typename
>
class
connect_handler
;
48
struct
connector
;
49
struct
endpoint
;
50
enum class
error
: int;
51
enum class
version
: std::uint8_t;
52
}
53
}
net::i2p_address
b32 i2p address; internal format not condensed/decoded.
Definition
i2p_address.h:52
net::socks::client
Client support for socks connect and resolve commands.
Definition
socks.h:107
net::socks::connect_handler
Definition
fwd.h:47
net::tor_address
Tor onion address; internal format not condensed/decoded.
Definition
tor_address.h:53
net::socks
Definition
fwd.h:45
net::socks::error
error
Possible errors with socks communication. Defined in https://www.openssh.com/txt/socks4....
Definition
socks.h:69
net::socks::version
version
Supported socks variants.
Definition
socks.h:60
net
Definition
net_utils_base.h:59
net::error
error
General net errors.
Definition
error.h:39
net::scheme_and_authority
Separates scheme, authority, and path sections of a URI.
Definition
parse.h:45
net::socks::connector
Primarily for use with epee::net_utils::http_client.
Definition
socks_connect.h:45
net::socks::endpoint
Separates TCP address, user+pass, and socks version.
Definition
parse.h:148
net::uri_components
Separates scheme, user, pass, and host+port sections of a URI.
Definition
parse.h:83
net::user_and_pass
Separates the user and pass sections from URI userinfo.
Definition
parse.h:65
net::userinfo_and_hostport
Separates the userinfo and host+port from URI authority.
Definition
parse.h:55
Generated on
for Monero by
1.17.0