Definition at line 94 of file AsyncUDPSocketGSOTest.cpp.
UDPAcceptor::UDPAcceptor |
( |
EventBase * |
evb, |
|
|
int |
n, |
|
|
bool |
changePortForWrites |
|
) |
| |
|
inline |
Definition at line 49 of file AsyncUDPSocketTest.cpp.
References data, and folly::netops::socket().
58 VLOG(4) <<
"Worker " <<
n_ <<
" read " << len <<
" bytes " 59 <<
"(trun:" << truncated <<
") from " << client.
describe() <<
" - "
std::unique_ptr< IOBuf > clone() const
std::string describe() const
folly::SocketAddress lastClient_
NetworkSocket socket(int af, int type, int protocol)
std::size_t computeChainDataLength() const
void sendPong(std::shared_ptr< folly::AsyncUDPSocket > socket) noexcept
void UDPAcceptor::onListenStarted |
( |
| ) |
|
|
inlineoverridenoexcept |
void UDPAcceptor::onListenStarted |
( |
| ) |
|
|
inlineoverridenoexcept |
void UDPAcceptor::onListenStopped |
( |
| ) |
|
|
inlineoverridenoexcept |
void UDPAcceptor::onListenStopped |
( |
| ) |
|
|
inlineoverridenoexcept |
Definition at line 65 of file AsyncUDPSocketTest.cpp.
References folly::IOBuf::copyBuffer(), evb_, and folly::netops::socket().
69 writeSocket = std::make_shared<folly::AsyncUDPSocket>(
evb_);
70 writeSocket->setReuseAddr(
false);
74 }
catch (
const std::exception& ex) {
75 VLOG(4) <<
"Failed to send PONG " << ex.what();
bool changePortForWrites_
folly::SocketAddress lastClient_
NetworkSocket socket(int af, int type, int protocol)
static std::unique_ptr< IOBuf > copyBuffer(const void *buf, std::size_t size, std::size_t headroom=0, std::size_t minTailroom=0)
bool UDPAcceptor::changePortForWrites_ {true} |
|
private |
const int UDPAcceptor::n_ {-1} |
|
private |
The documentation for this class was generated from the following files: