|
rippled
|
Sends HTTP response. More...


Public Member Functions | |
| virtual | ~InboundHandoff () override=default |
| InboundHandoff (Application &app, id_t id, std::shared_ptr< PeerFinder::Slot > const &slot, http_request_type &&request, PublicKey const &publicKey, ProtocolVersion protocol, Resource::Consumer consumer, std::unique_ptr< stream_type > &&stream_ptr, OverlayImpl &overlay) | |
| InboundHandoff (InboundHandoff const &)=delete | |
| InboundHandoff & | operator= (InboundHandoff const &)=delete |
| void | run () |
| Start the handshake. More... | |
| void | stop () override |
| Stop the child. More... | |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Protected Attributes | |
| OverlayImpl & | overlay_ |
Private Types | |
| using | error_code = boost::system::error_code |
| using | socket_type = boost::asio::ip::tcp::socket |
| using | middle_type = boost::beast::tcp_stream |
| using | stream_type = boost::beast::ssl_stream< middle_type > |
| using | id_t = Peer::id_t |
Private Member Functions | |
| void | sendResponse () |
| Send upgrade response to the client. More... | |
| void | createPeer () |
| Instantiate and run the overlay peer. More... | |
| void | fail (std::string const &name, error_code const &ec) |
| Log and close. More... | |
| void | fail (std::string const &reason) |
| Log and close. More... | |
| void | close () |
| Close connection. More... | |
| socket_type & | socket () const |
| Get underlying socket. More... | |
Private Attributes | |
| Application & | app_ |
| const id_t | id_ |
| beast::WrappedSink | sink_ |
| const beast::Journal | journal_ |
| std::unique_ptr< stream_type > | stream_ptr_ |
| boost::asio::strand< boost::asio::executor > | strand_ |
| const beast::IP::Endpoint | remote_address_ |
| ProtocolVersion | protocol_ |
| const PublicKey | publicKey_ |
| Resource::Consumer | usage_ |
| const std::shared_ptr< PeerFinder::Slot > | slot_ |
| http_request_type | request_ |
Sends HTTP response.
Instantiates the inbound peer once the response is sent. Maintains all data members required for the inbound peer instantiation.
Definition at line 31 of file InboundHandoff.h.
|
private |
Definition at line 35 of file InboundHandoff.h.
|
private |
Definition at line 36 of file InboundHandoff.h.
|
private |
Definition at line 37 of file InboundHandoff.h.
|
private |
Definition at line 38 of file InboundHandoff.h.
|
private |
Definition at line 39 of file InboundHandoff.h.
|
overridevirtualdefault |
| ripple::InboundHandoff::InboundHandoff | ( | Application & | app, |
| id_t | id, | ||
| std::shared_ptr< PeerFinder::Slot > const & | slot, | ||
| http_request_type && | request, | ||
| PublicKey const & | publicKey, | ||
| ProtocolVersion | protocol, | ||
| Resource::Consumer | consumer, | ||
| std::unique_ptr< stream_type > && | stream_ptr, | ||
| OverlayImpl & | overlay | ||
| ) |
Definition at line 28 of file InboundHandoff.cpp.
|
delete |
|
delete |
| void ripple::InboundHandoff::run | ( | ) |
Start the handshake.
Definition at line 61 of file InboundHandoff.cpp.
|
overridevirtual |
Stop the child.
Implements ripple::OverlayImpl::Child.
Definition at line 70 of file InboundHandoff.cpp.
|
private |
Send upgrade response to the client.
Definition at line 83 of file InboundHandoff.cpp.
|
private |
Instantiate and run the overlay peer.
Definition at line 163 of file InboundHandoff.cpp.
|
private |
Log and close.
Definition at line 129 of file InboundHandoff.cpp.
|
private |
Log and close.
Definition at line 141 of file InboundHandoff.cpp.
|
private |
Close connection.
Definition at line 153 of file InboundHandoff.cpp.
|
private |
Get underlying socket.
Definition at line 180 of file InboundHandoff.cpp.
|
private |
Definition at line 40 of file InboundHandoff.h.
|
private |
Definition at line 41 of file InboundHandoff.h.
|
private |
Definition at line 42 of file InboundHandoff.h.
|
private |
Definition at line 43 of file InboundHandoff.h.
|
private |
Definition at line 44 of file InboundHandoff.h.
|
private |
Definition at line 45 of file InboundHandoff.h.
|
private |
Definition at line 46 of file InboundHandoff.h.
|
private |
Definition at line 47 of file InboundHandoff.h.
|
private |
Definition at line 48 of file InboundHandoff.h.
|
private |
Definition at line 49 of file InboundHandoff.h.
|
private |
Definition at line 50 of file InboundHandoff.h.
|
private |
Definition at line 51 of file InboundHandoff.h.
|
protectedinherited |
Definition at line 64 of file OverlayImpl.h.
1.8.17