|
proxygen
|
Public Member Functions | |
| UDPClient (EventBase *evb, TestData &testData) | |
| void | start (const folly::SocketAddress &server) |
| void | connect () |
| void | shutdown () |
| void | sendPing () |
| virtual void | writePing (std::unique_ptr< folly::IOBuf > buf, int gso) |
| void | getReadBuffer (void **buf, size_t *len) noexceptoverride |
| void | onDataAvailable (const folly::SocketAddress &, size_t len, bool) noexceptoverride |
| void | onReadError (const folly::AsyncSocketException &ex) noexceptoverride |
| void | onReadClosed () noexceptoverride |
| void | timeoutExpired () noexceptoverride |
| AsyncUDPSocket & | getSocket () |
| void | setShouldConnect (const folly::SocketAddress &connectAddr) |
| UDPClient (EventBase *evb) | |
| void | start (const folly::SocketAddress &server, int n) |
| void | connect () |
| void | shutdown () |
| void | sendPing () |
| virtual void | writePing (std::unique_ptr< folly::IOBuf > buf) |
| void | getReadBuffer (void **buf, size_t *len) noexceptoverride |
| void | onDataAvailable (const folly::SocketAddress &client, size_t len, bool truncated) noexceptoverride |
| void | onReadError (const folly::AsyncSocketException &ex) noexceptoverride |
| void | onReadClosed () noexceptoverride |
| void | timeoutExpired () noexceptoverride |
| int | pongRecvd () const |
| AsyncUDPSocket & | getSocket () |
| void | setShouldConnect (const folly::SocketAddress &connectAddr) |
Protected Attributes | |
| folly::Optional< folly::SocketAddress > | connectAddr_ |
| EventBase *const | evb_ {nullptr} |
| folly::SocketAddress | server_ |
| std::unique_ptr< AsyncUDPSocket > | socket_ |
Private Attributes | |
| char | buf_ [2048] |
| TestData & | testData_ |
| int | pongRecvd_ {0} |
| int | n_ {0} |
Additional Inherited Members | |
Private Types inherited from folly::AsyncTimeout | |
| typedef TimeoutManager::InternalEnum | InternalEnum |
Private Member Functions inherited from folly::AsyncTimeout | |
| AsyncTimeout (TimeoutManager *timeoutManager) | |
| AsyncTimeout (EventBase *eventBase) | |
| AsyncTimeout (TimeoutManager *timeoutManager, InternalEnum internal) | |
| AsyncTimeout (EventBase *eventBase, InternalEnum internal) | |
| AsyncTimeout () | |
| virtual | ~AsyncTimeout () |
| bool | scheduleTimeout (uint32_t milliseconds) |
| bool | scheduleTimeout (TimeoutManager::timeout_type timeout) |
| void | cancelTimeout () |
| bool | isScheduled () const |
| void | attachTimeoutManager (TimeoutManager *timeoutManager, InternalEnum internal=InternalEnum::NORMAL) |
| void | attachEventBase (EventBase *eventBase, InternalEnum internal=InternalEnum::NORMAL) |
| void | detachTimeoutManager () |
| void | detachEventBase () |
| const TimeoutManager * | getTimeoutManager () |
| struct event * | getEvent () |
Static Private Member Functions inherited from folly::AsyncTimeout | |
| template<typename TCallback > | |
| static std::unique_ptr< AsyncTimeout > | make (TimeoutManager &manager, TCallback &&callback) |
| template<typename TCallback > | |
| static std::unique_ptr< AsyncTimeout > | schedule (TimeoutManager::timeout_type timeout, TimeoutManager &manager, TCallback &&callback) |
Definition at line 188 of file AsyncUDPSocketGSOTest.cpp.
Definition at line 190 of file AsyncUDPSocketGSOTest.cpp.
|
inlineexplicit |
Definition at line 170 of file AsyncUDPSocketTest.cpp.
|
inline |
Definition at line 195 of file AsyncUDPSocketTest.cpp.
References folly::AsyncSocketException::NOT_OPEN, and socket_.
|
inline |
Definition at line 228 of file AsyncUDPSocketGSOTest.cpp.
References folly::AsyncSocketException::NOT_OPEN, and socket_.
|
inlineoverridenoexcept |
Definition at line 227 of file AsyncUDPSocketTest.cpp.
|
inlineoverridenoexcept |
Definition at line 255 of file AsyncUDPSocketGSOTest.cpp.
|
inline |
Definition at line 265 of file AsyncUDPSocketTest.cpp.
References socket_.
|
inline |
Definition at line 286 of file AsyncUDPSocketGSOTest.cpp.
References socket_.
|
inlineoverridenoexcept |
|
inlineoverridenoexcept |
|
inlineoverridenoexcept |
Definition at line 252 of file AsyncUDPSocketTest.cpp.
|
inlineoverridenoexcept |
Definition at line 277 of file AsyncUDPSocketGSOTest.cpp.
|
inlineoverridenoexcept |
Definition at line 245 of file AsyncUDPSocketTest.cpp.
References socket_.
|
inlineoverridenoexcept |
Definition at line 270 of file AsyncUDPSocketGSOTest.cpp.
References socket_.
|
inline |
Definition at line 261 of file AsyncUDPSocketTest.cpp.
|
inline |
Definition at line 212 of file AsyncUDPSocketTest.cpp.
References folly::IOBuf::copyBuffer(), folly::shutdown(), and proxygen::http2::writePing().
|
inline |
Definition at line 245 of file AsyncUDPSocketGSOTest.cpp.
References proxygen::http2::writePing().
|
inline |
Definition at line 269 of file AsyncUDPSocketTest.cpp.
|
inline |
Definition at line 290 of file AsyncUDPSocketGSOTest.cpp.
|
inline |
Definition at line 204 of file AsyncUDPSocketTest.cpp.
References evb_, folly::EventBase::isInEventBaseThread(), socket_, and folly::EventBase::terminateLoopSoon().
|
inline |
Definition at line 237 of file AsyncUDPSocketGSOTest.cpp.
References evb_, folly::EventBase::isInEventBaseThread(), socket_, and folly::EventBase::terminateLoopSoon().
|
inline |
Definition at line 172 of file AsyncUDPSocketTest.cpp.
References folly::netops::connect(), evb_, folly::EventBase::isInEventBaseThread(), and socket_.
|
inline |
Definition at line 193 of file AsyncUDPSocketGSOTest.cpp.
References folly::netops::connect(), evb_, folly::EventBase::isInEventBaseThread(), folly::shutdown(), and socket_.
|
inlineoverridevirtualnoexcept |
timeoutExpired() is invoked when the timeout period has expired.
Implements folly::AsyncTimeout.
Definition at line 256 of file AsyncUDPSocketTest.cpp.
|
inlineoverridevirtualnoexcept |
timeoutExpired() is invoked when the timeout period has expired.
Implements folly::AsyncTimeout.
Definition at line 281 of file AsyncUDPSocketGSOTest.cpp.
References folly::shutdown().
|
inlinevirtual |
Reimplemented in ConnectedWriteUDPClient.
Definition at line 223 of file AsyncUDPSocketTest.cpp.
References folly::gen::move, and socket_.
|
inlinevirtual |
Definition at line 251 of file AsyncUDPSocketGSOTest.cpp.
References folly::gen::move, and socket_.
|
private |
Definition at line 302 of file AsyncUDPSocketGSOTest.cpp.
|
protected |
Definition at line 295 of file AsyncUDPSocketGSOTest.cpp.
Definition at line 296 of file AsyncUDPSocketGSOTest.cpp.
|
private |
Definition at line 283 of file AsyncUDPSocketTest.cpp.
|
private |
Definition at line 281 of file AsyncUDPSocketTest.cpp.
|
protected |
Definition at line 298 of file AsyncUDPSocketGSOTest.cpp.
|
protected |
Definition at line 299 of file AsyncUDPSocketGSOTest.cpp.
|
private |
Definition at line 303 of file AsyncUDPSocketGSOTest.cpp.