37#ifndef UG_HOLE_PUNCH_MESSAGE_HPP
38#define UG_HOLE_PUNCH_MESSAGE_HPP
53 std::string_view
getStr()
const;
67 const std::error_code& ec,
size_t readLen);
70 const std::error_code& ec,
size_t readLen);
73 const std::error_code& ec,
size_t sentLen);
std::string_view getStr() const
void async_readMsg(asio::ip::tcp::socket &socket, CompletionCallback onComplete)
void async_sendComplete(CompletionCallback onComplete, const std::error_code &ec, size_t sentLen)
void async_sendMsg(asio::ip::tcp::socket &socket, CompletionCallback onComplete)
static constexpr size_t bodySize
static constexpr size_t headerSize
void async_readBody(asio::ip::tcp::socket &socket, CompletionCallback onComplete, const std::error_code &ec, size_t readLen)
char data[headerSize+bodySize]
bool isSendingNow() const
void setStr(std::string_view msg)
std::function< void(CompletionStatus)> CompletionCallback
void async_readBodyComplete(CompletionCallback onComplete, const std::error_code &ec, size_t readLen)