Windows: one end of a service's named pipe - a message pipe, read and written overlapped: Windows serializes the synchronous operations on a process' pipes.
More...
#include <dx_service_transport.h>
|
| const message* | receive(std::stop_token& stop_token) noexcept |
| | the next message whole, its sizes checked - none where the pipe ended, stops or carried no message
|
| std::optional<::DWORD> | wait(::OVERLAPPED& overlapped, std::stop_token& stop_token) noexcept |
| | an overlapped operation's end, waited for against the stop token: its size, or none where it failed or stops
|
|
| static std::string | name(const std::string& id) |
Windows: one end of a service's named pipe - a message pipe, read and written overlapped: Windows serializes the synchronous operations on a process' pipes.
A message is read whole, what the first read leaves (ERROR_MORE_DATA) read behind it. A wait polls against its stop token: a client connecting and leaving ahead of GetOverlappedResult() leaves that call unwakeable by CancelIoEx().
◆ ~pipe()
| dx::service::platform::pipe::~pipe() |
|
inlineoverride |
◆ free()
| void dx::service::platform::pipe::free() |
|
inlineoverridevirtualnoexcept |
◆ name()
| std::string dx::service::platform::pipe::name(const std::string& id) |
|
inlinestaticprotected |
◆ operator const os_event()
template<
::HANDLE invalid_t= INVALID_HANDLE_VALUE>
◆ operator os_event()
template<
::HANDLE invalid_t= INVALID_HANDLE_VALUE>
◆ operator ::HANDLE()
template<::HANDLE invalid_t= INVALID_HANDLE_VALUE>
◆ receive()
| const message* dx::service::platform::pipe::receive(std::stop_token& stop_token) |
|
inlineprotectednoexcept |
the next message whole, its sizes checked - none where the pipe ended, stops or carried no message
◆ send()
| void dx::service::platform::pipe::send(const std::vector<uint8_t>& message) |
|
inline |
◆ wait()
| std::optional<::DWORD> dx::service::platform::pipe::wait(::OVERLAPPED& overlapped, std::stop_token& stop_token) |
|
inlineprotectednoexcept |
an overlapped operation's end, waited for against the stop token: its size, or none where it failed or stops
◆ handle
template<
::HANDLE invalid_t= INVALID_HANDLE_VALUE>
◆ process
template<
::HANDLE invalid_t= INVALID_HANDLE_VALUE>
The documentation for this class was generated from the following file: