OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::WS::ClientSet::Client Class Reference
Inheritance diagram for openvpn::WS::ClientSet::Client:
[legend]
Collaboration diagram for openvpn::WS::ClientSet::Client:
[legend]

Public Types

typedef RCPtr< ClientPtr
 

Public Member Functions

 Client (ClientSet *parent_arg, const TransactionSet::Ptr ts_arg, client_t client_id_arg)
 
bool start ()
 
void stop (const bool keepalive, const bool shutdown)
 
void reset_callbacks ()
 
void abort (const std::string &message)
 

Public Attributes

friend HTTPDelegate
 

Private Member Functions

void close_http (const bool keepalive, const bool shutdown)
 
void remove_self_from_map ()
 
bool check_if_done ()
 
void done (const bool status, const bool shutdown)
 
Transactiontrans ()
 
const Transactiontrans () const
 
std::string title () const
 
void next_request (const bool error_retry)
 
void reconnect_schedule (const bool error_retry)
 
WS::Client::Host http_host (HTTPDelegate &hd) const
 
WS::Client::Request http_request (HTTPDelegate &hd) const
 
WS::Client::ContentInfo http_content_info (HTTPDelegate &hd) const
 
void http_headers_received (HTTPDelegate &hd)
 
BufferPtr http_content_out (HTTPDelegate &hd)
 
void http_content_out_needed (HTTPDelegate &hd)
 
void http_headers_sent (HTTPDelegate &hd, const Buffer &buf)
 
void http_mutate_resolver_results (HTTPDelegate &hd, openvpn_io::ip::tcp::resolver::results_type &results)
 
void http_content_in (HTTPDelegate &hd, BufferAllocated &buf)
 
void http_done (HTTPDelegate &hd, const int status, const std::string &description)
 
void post_next_request ()
 
void http_keepalive_close (HTTPDelegate &hd, const int status, const std::string &description)
 
void http_post_connect (HTTPDelegate &hd, AsioPolySock::Base &sock)
 
bool http_status_should_retry (const int status) const
 

Private Attributes

ClientSetparent
 
TransactionSet::Ptr ts
 
TransactionSet::Vector::const_iterator ts_iter
 
BufferList content_out
 
BufferList::const_iterator out_iter
 
unsigned int n_retries
 
size_t buf_tailroom
 
Time::Duration retry_duration
 
AsioTimerSafe reconnect_timer
 
client_t client_id
 
bool halt
 
bool started
 

Detailed Description

Definition at line 626 of file httpcliset.hpp.

Member Typedef Documentation

◆ Ptr

Definition at line 629 of file httpcliset.hpp.

Constructor & Destructor Documentation

◆ Client()

openvpn::WS::ClientSet::Client::Client ( ClientSet parent_arg,
const TransactionSet::Ptr  ts_arg,
client_t  client_id_arg 
)
inline

Definition at line 632 of file httpcliset.hpp.

Member Function Documentation

◆ abort()

void openvpn::WS::ClientSet::Client::abort ( const std::string &  message)
inline

Definition at line 680 of file httpcliset.hpp.

◆ check_if_done()

bool openvpn::WS::ClientSet::Client::check_if_done ( )
inlineprivate

Definition at line 699 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ close_http()

void openvpn::WS::ClientSet::Client::close_http ( const bool  keepalive,
const bool  shutdown 
)
inlineprivate

Definition at line 687 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ done()

void openvpn::WS::ClientSet::Client::done ( const bool  status,
const bool  shutdown 
)
inlineprivate

Definition at line 710 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ http_content_in()

void openvpn::WS::ClientSet::Client::http_content_in ( HTTPDelegate hd,
BufferAllocated buf 
)
inlineprivate

Definition at line 864 of file httpcliset.hpp.

◆ http_content_info()

WS::Client::ContentInfo openvpn::WS::ClientSet::Client::http_content_info ( HTTPDelegate hd) const
inlineprivate

Definition at line 791 of file httpcliset.hpp.

◆ http_content_out()

BufferPtr openvpn::WS::ClientSet::Client::http_content_out ( HTTPDelegate hd)
inlineprivate

Definition at line 824 of file httpcliset.hpp.

◆ http_content_out_needed()

void openvpn::WS::ClientSet::Client::http_content_out_needed ( HTTPDelegate hd)
inlineprivate

Definition at line 836 of file httpcliset.hpp.

◆ http_done()

void openvpn::WS::ClientSet::Client::http_done ( HTTPDelegate hd,
const int  status,
const std::string &  description 
)
inlineprivate

Definition at line 869 of file httpcliset.hpp.

◆ http_headers_received()

void openvpn::WS::ClientSet::Client::http_headers_received ( HTTPDelegate hd)
inlineprivate

Definition at line 804 of file httpcliset.hpp.

◆ http_headers_sent()

void openvpn::WS::ClientSet::Client::http_headers_sent ( HTTPDelegate hd,
const Buffer buf 
)
inlineprivate

Definition at line 840 of file httpcliset.hpp.

◆ http_host()

WS::Client::Host openvpn::WS::ClientSet::Client::http_host ( HTTPDelegate hd) const
inlineprivate

Definition at line 781 of file httpcliset.hpp.

◆ http_keepalive_close()

void openvpn::WS::ClientSet::Client::http_keepalive_close ( HTTPDelegate hd,
const int  status,
const std::string &  description 
)
inlineprivate

Definition at line 966 of file httpcliset.hpp.

◆ http_mutate_resolver_results()

void openvpn::WS::ClientSet::Client::http_mutate_resolver_results ( HTTPDelegate hd,
openvpn_io::ip::tcp::resolver::results_type &  results 
)
inlineprivate

Definition at line 853 of file httpcliset.hpp.

◆ http_post_connect()

void openvpn::WS::ClientSet::Client::http_post_connect ( HTTPDelegate hd,
AsioPolySock::Base sock 
)
inlineprivate

Definition at line 972 of file httpcliset.hpp.

◆ http_request()

WS::Client::Request openvpn::WS::ClientSet::Client::http_request ( HTTPDelegate hd) const
inlineprivate

Definition at line 786 of file httpcliset.hpp.

◆ http_status_should_retry()

bool openvpn::WS::ClientSet::Client::http_status_should_retry ( const int  status) const
inlineprivate

Definition at line 978 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ next_request()

void openvpn::WS::ClientSet::Client::next_request ( const bool  error_retry)
inlineprivate

Definition at line 740 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ post_next_request()

void openvpn::WS::ClientSet::Client::post_next_request ( )
inlineprivate

Definition at line 959 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ reconnect_schedule()

void openvpn::WS::ClientSet::Client::reconnect_schedule ( const bool  error_retry)
inlineprivate

Definition at line 770 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ remove_self_from_map()

void openvpn::WS::ClientSet::Client::remove_self_from_map ( )
inlineprivate

Definition at line 692 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ reset_callbacks()

void openvpn::WS::ClientSet::Client::reset_callbacks ( )
inline

Definition at line 674 of file httpcliset.hpp.

◆ start()

bool openvpn::WS::ClientSet::Client::start ( )
inline

Definition at line 646 of file httpcliset.hpp.

◆ stop()

void openvpn::WS::ClientSet::Client::stop ( const bool  keepalive,
const bool  shutdown 
)
inline

Definition at line 665 of file httpcliset.hpp.

◆ title()

std::string openvpn::WS::ClientSet::Client::title ( ) const
inlineprivate

Definition at line 735 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ trans() [1/2]

Transaction & openvpn::WS::ClientSet::Client::trans ( )
inlineprivate

Definition at line 725 of file httpcliset.hpp.

Here is the caller graph for this function:

◆ trans() [2/2]

const Transaction & openvpn::WS::ClientSet::Client::trans ( ) const
inlineprivate

Definition at line 730 of file httpcliset.hpp.

Member Data Documentation

◆ buf_tailroom

size_t openvpn::WS::ClientSet::Client::buf_tailroom
private

Definition at line 989 of file httpcliset.hpp.

◆ client_id

client_t openvpn::WS::ClientSet::Client::client_id
private

Definition at line 992 of file httpcliset.hpp.

◆ content_out

BufferList openvpn::WS::ClientSet::Client::content_out
private

Definition at line 986 of file httpcliset.hpp.

◆ halt

bool openvpn::WS::ClientSet::Client::halt
private

Definition at line 993 of file httpcliset.hpp.

◆ HTTPDelegate

friend openvpn::WS::ClientSet::Client::HTTPDelegate

Definition at line 630 of file httpcliset.hpp.

◆ n_retries

unsigned int openvpn::WS::ClientSet::Client::n_retries
private

Definition at line 988 of file httpcliset.hpp.

◆ out_iter

BufferList::const_iterator openvpn::WS::ClientSet::Client::out_iter
private

Definition at line 987 of file httpcliset.hpp.

◆ parent

ClientSet* openvpn::WS::ClientSet::Client::parent
private

Definition at line 983 of file httpcliset.hpp.

◆ reconnect_timer

AsioTimerSafe openvpn::WS::ClientSet::Client::reconnect_timer
private

Definition at line 991 of file httpcliset.hpp.

◆ retry_duration

Time::Duration openvpn::WS::ClientSet::Client::retry_duration
private

Definition at line 990 of file httpcliset.hpp.

◆ started

bool openvpn::WS::ClientSet::Client::started
private

Definition at line 994 of file httpcliset.hpp.

◆ ts

TransactionSet::Ptr openvpn::WS::ClientSet::Client::ts
private

Definition at line 984 of file httpcliset.hpp.

◆ ts_iter

TransactionSet::Vector::const_iterator openvpn::WS::ClientSet::Client::ts_iter
private

Definition at line 985 of file httpcliset.hpp.


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