proxygen
|
Public Member Functions | |
ConnectCallback (folly::Promise< Pipeline * > promise, ClientBootstrap *bootstrap, std::shared_ptr< folly::AsyncSocket > socket, SSLSessionEstablishedCallbackUniquePtr sslSessionEstablishedCallback) | |
void | connectSuccess () noexceptoverride |
void | connectErr (const folly::AsyncSocketException &ex) noexceptoverride |
Public Member Functions inherited from folly::AsyncSocket::ConnectCallback | |
virtual | ~ConnectCallback ()=default |
Private Attributes | |
folly::Promise< Pipeline * > | promise_ |
ClientBootstrap * | bootstrap_ |
std::shared_ptr< folly::AsyncSocket > | socket_ |
folly::DestructorCheck::Safety | safety_ |
SSLSessionEstablishedCallbackUniquePtr | sslSessionEstablishedCallback_ |
Definition at line 37 of file ClientBootstrap.h.
|
inline |
Definition at line 39 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< DefaultPipeline >::connect().
|
inlineoverridevirtualnoexcept |
connectErr() will be invoked if the connection attempt fails.
ex | An exception describing the error that occurred. |
Implements folly::AsyncSocket::ConnectCallback.
Definition at line 71 of file ClientBootstrap.h.
References wangle::ClientBootstrap< Pipeline >::ConnectCallback::promise_.
|
inlineoverridevirtualnoexcept |
connectSuccess() will be invoked when the connection has been successfully established.
Implements folly::AsyncSocket::ConnectCallback.
Definition at line 51 of file ClientBootstrap.h.
References wangle::ClientBootstrap< Pipeline >::ConnectCallback::bootstrap_, folly::DestructorCheck::Safety::destroyed(), wangle::BaseClientBootstrap< P >::getPipeline(), folly::AsyncSSLSocket::getSSLSession(), folly::AsyncSSLSocket::getSSLSessionReused(), wangle::BaseClientBootstrap< P >::makePipeline(), folly::gen::move, wangle::ClientBootstrap< Pipeline >::ConnectCallback::promise_, wangle::ClientBootstrap< Pipeline >::ConnectCallback::safety_, wangle::ClientBootstrap< Pipeline >::ConnectCallback::socket_, wangle::ClientBootstrap< Pipeline >::ConnectCallback::sslSessionEstablishedCallback_, and wangle::Pipeline< R, W >::transportActive().
|
private |
Definition at line 78 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectSuccess().
|
private |
Definition at line 77 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectErr(), and wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectSuccess().
|
private |
Definition at line 80 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectSuccess().
|
private |
Definition at line 79 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectSuccess().
|
private |
Definition at line 81 of file ClientBootstrap.h.
Referenced by wangle::ClientBootstrap< DefaultPipeline >::connect(), and wangle::ClientBootstrap< Pipeline >::ConnectCallback::connectSuccess().