Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
Proxy Class Reference

#include <netbase.h>

Collaboration diagram for Proxy:
[legend]

Public Member Functions

 Proxy ()
 
 Proxy (const CService &_proxy, bool _randomize_credentials=false)
 
 Proxy (const std::string path, bool _randomize_credentials=false)
 
bool IsValid () const
 
sa_family_t GetFamily () const
 
std::string ToString () const
 
std::unique_ptr< SockConnect () const
 

Public Attributes

CService proxy
 
std::string m_unix_socket_path
 
bool m_is_unix_socket
 
bool m_randomize_credentials
 

Detailed Description

Definition at line 58 of file netbase.h.

Constructor & Destructor Documentation

◆ Proxy() [1/3]

Proxy::Proxy ( )
inline

Definition at line 61 of file netbase.h.

◆ Proxy() [2/3]

Proxy::Proxy ( const CService _proxy,
bool  _randomize_credentials = false 
)
inlineexplicit

Definition at line 62 of file netbase.h.

◆ Proxy() [3/3]

Proxy::Proxy ( const std::string  path,
bool  _randomize_credentials = false 
)
inlineexplicit

Definition at line 63 of file netbase.h.

Member Function Documentation

◆ Connect()

std::unique_ptr< Sock > Proxy::Connect ( ) const

Definition at line 633 of file netbase.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetFamily()

sa_family_t Proxy::GetFamily ( ) const
inline

Definition at line 76 of file netbase.h.

Here is the call graph for this function:

◆ IsValid()

bool Proxy::IsValid ( ) const
inline

Definition at line 70 of file netbase.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToString()

std::string Proxy::ToString ( ) const
inline

Definition at line 82 of file netbase.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_is_unix_socket

bool Proxy::m_is_unix_socket

Definition at line 67 of file netbase.h.

◆ m_randomize_credentials

bool Proxy::m_randomize_credentials

Definition at line 68 of file netbase.h.

◆ m_unix_socket_path

std::string Proxy::m_unix_socket_path

Definition at line 66 of file netbase.h.

◆ proxy

CService Proxy::proxy

Definition at line 65 of file netbase.h.


The documentation for this class was generated from the following files: