Definition at line 287 of file AsyncUDPSocketTest.cpp.
ConnectedWriteUDPClient::~ConnectedWriteUDPClient |
( |
| ) |
|
|
overridedefault |
ConnectedWriteUDPClient::ConnectedWriteUDPClient |
( |
EventBase * |
evb | ) |
|
|
inline |
void ConnectedWriteUDPClient::writePing |
( |
std::unique_ptr< folly::IOBuf > |
buf | ) |
|
|
inlineoverridevirtual |
Reimplemented from UDPClient.
Definition at line 295 of file AsyncUDPSocketTest.cpp.
References folly::IOBuf::coalesce(), folly::netops::connect(), folly::IOBuf::data(), folly::IOBuf::fillIov(), folly::IOBuf::length(), folly::AsyncSocketException::NOT_OPEN, folly::netops::sendmsg(), socket_, uint8_t, and UNLIKELY.
297 size_t iovec_len = buf->
fillIov(vec,
sizeof(vec) /
sizeof(vec[0]));
300 vec[0].iov_base =
const_cast<uint8_t*
>(buf->
data());
301 vec[0].iov_len = buf->
length();
306 msg.msg_name =
nullptr;
308 msg.msg_iov =
const_cast<struct iovec*
>(
vec);
309 msg.msg_iovlen = iovec_len;
310 msg.msg_control =
nullptr;
311 msg.msg_controllen = 0;
316 if (errno != EAGAIN || errno != EWOULDBLOCK) {
ssize_t sendmsg(NetworkSocket socket, const msghdr *message, int flags)
std::unique_ptr< AsyncUDPSocket > socket_
const uint8_t * data() const
size_t fillIov(struct iovec *iov, size_t len) const
std::size_t length() const
The documentation for this class was generated from the following file: