Collection of utility functions.
More...
#include <DwmAuthUtils.hh>
|
|
using | Clock = std::chrono::system_clock |
| |
|
using | TimePoint = std::chrono::time_point< Clock > |
| |
|
|
static int | BytesReady (int fd) |
| |
|
static std::size_t | BytesReady (boost::asio::ip::tcp::socket &sck) |
| |
|
static bool | WaitUntilBytesReady (int fd, uint32_t numBytes, TimePoint endTime) |
| |
|
static bool | WaitUntilBytesReady (boost::asio::ip::tcp::socket &sck, uint32_t numBytes, TimePoint endTime) |
| |
|
static bool | WaitForBytesReady (int fd, uint32_t numBytes, std::chrono::milliseconds timeout) |
| |
|
static bool | WaitForBytesReady (boost::asio::ip::tcp::socket &sck, uint32_t numBytes, std::chrono::milliseconds timeout) |
| |
|
static ssize_t | ReadLengthRestrictedString (int fd, std::string &s, uint32_t maxLen) |
| |
|
static ssize_t | ReadLengthRestrictedString (boost::asio::ip::tcp::socket &sck, std::string &s, uint32_t maxLen) |
| |
|
static std::istream & | ReadLengthRestrictedString (std::istream &is, std::string &s, uint32_t maxLen) |
| |
|
static ssize_t | ReadLengthRestrictedString (int fd, std::string &s, uint32_t maxLen, std::chrono::milliseconds timeout) |
| |
|
static ssize_t | ReadLengthRestrictedString (int fd, std::string &s, uint32_t maxLen, TimePoint endTime) |
| |
|
static ssize_t | ReadLengthRestrictedString (boost::asio::ip::tcp::socket &sck, std::string &s, uint32_t maxLen, TimePoint endTime) |
| |
Collection of utility functions.
The documentation for this class was generated from the following file: