1 #ifndef UVW_PIPE_INCLUDE_H
2 #define UVW_PIPE_INCLUDE_H
21 enum class UVChmodFlags: std::underlying_type_t<uv_poll_event> {
22 READABLE = UV_READABLE,
23 WRITABLE = UV_WRITABLE
43 using Chmod = details::UVChmodFlags;
45 explicit PipeHandle(ConstructorAccess ca, std::shared_ptr<Loop> ref,
bool pass =
false);
72 void bind(std::string name);
91 std::string
sock() const noexcept;
99 std::
string peer() const noexcept;
167 #endif // UVW_PIPE_INCLUDE_H
std::string sock() const noexcept
Gets the name of the Unix domain socket or the named pipe.
int pending() noexcept
Gets the number of pending pipe this instance can handle.
HandleType receive() noexcept
Used to receive handles over IPC pipes.
Utility class to handle flags.
void bind(std::string name)
bind Binds the pipe to a file path (Unix) or a name (Windows).
std::string peer() const noexcept
Gets the name of the Unix domain socket or the named pipe to which the handle is connected.
void open(FileHandle file)
Opens an existing file descriptor or HANDLE as a pipe.
bool init()
Initializes the handle.
details::UVTypeWrapper< uv_file > FileHandle
bool chmod(Flags< Chmod > flags) noexcept
Alters pipe permissions.
void connect(std::string name)
Connects to the Unix domain socket or the named pipe.