32 std::shared_ptr<folly::SSLContext> sslContext)
52 std::chrono::milliseconds timeout = std::chrono::milliseconds::zero()) {
64 sock_->closeWithReset();
68 sock_->write(
this, buf, len);
87 return sock_->getFd();
118 sock_->setReadCB(
nullptr);
133 if (!sock_->good()) {
139 sock_->setReadCB(
this);
140 while (!err_ && sock_->good() &&
readLen_ > 0) {
146 sock_->setReadCB(
nullptr);
folly::AsyncSSLSocket * getSSLSocket()
void writeSuccess() noexceptoverride
folly::Optional< folly::AsyncSocketException > err_
void open(std::chrono::milliseconds timeout=std::chrono::milliseconds::zero())
void writeErr(size_t, const folly::AsyncSocketException &ex) noexceptoverride
void setAddress(folly::SocketAddress address)
constexpr detail::Map< Move > move
BlockingSocket(folly::SocketAddress address, std::shared_ptr< folly::SSLContext > sslContext)
void readEOF() noexceptoverride
—— Concurrent Priority Queue Implementation ——
void readDataAvailable(size_t len) noexceptoverride
requires E e noexcept(noexcept(s.error(std::move(e))))
void connectSuccess() noexceptoverride
BlockingSocket(folly::AsyncSocket::UniquePtr socket)
void getReadBuffer(void **bufReturn, size_t *lenReturn) override
folly::SocketAddress address_
bool loopOnce(int flags=0)
int32_t readAll(uint8_t *buf, size_t len)
void connectErr(const folly::AsyncSocketException &ex) noexceptoverride
FOLLY_CPP14_CONSTEXPR bool hasValue() const noexcept
NetworkSocket socket(int af, int type, int protocol)
void readErr(const folly::AsyncSocketException &ex) noexceptoverride
int32_t readHelper(uint8_t *buf, size_t len, bool all)
folly::AsyncSocket::UniquePtr sock_
FOLLY_CPP14_CONSTEXPR const Value & value() const &
folly::AsyncSocket * getSocket()
int32_t read(uint8_t *buf, size_t len)
folly::EventBase eventBase_
std::unique_ptr< AsyncSocket, Destructor > UniquePtr
int32_t write(uint8_t const *buf, size_t len)
Composed all(Predicate pred=Predicate())