nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
nixd::StreamProc Struct Reference

#include <StreamProc.h>

Public Member Functions

 StreamProc (const std::function< int()> &Action)
 Launch a streamed process with Action.
 
llvm::raw_fd_ostream & stream () const
 
util::PipedProcproc () const
 
std::unique_ptr< lspserver::InboundPortmkIn () const
 
std::unique_ptr< lspserver::OutboundPortmkOut () const
 

Detailed Description

Definition at line 10 of file StreamProc.h.

Constructor & Destructor Documentation

◆ StreamProc()

StreamProc::StreamProc ( const std::function< int()> & Action)

Launch a streamed process with Action.

The value returned by Action will be interpreted as process's exit value.

Definition at line 17 of file StreamProc.cpp.

References nixd::forkPiped(), and nixd::fromJSON().

Member Function Documentation

◆ mkIn()

std::unique_ptr< InboundPort > StreamProc::mkIn ( ) const

Definition at line 8 of file StreamProc.cpp.

◆ mkOut()

std::unique_ptr< OutboundPort > StreamProc::mkOut ( ) const

Definition at line 13 of file StreamProc.cpp.

◆ proc()

util::PipedProc & nixd::StreamProc::proc ( ) const
inline

Definition at line 27 of file StreamProc.h.

Referenced by nixd::AttrSetClientProc::client().

◆ stream()

llvm::raw_fd_ostream & nixd::StreamProc::stream ( ) const
inline

Definition at line 22 of file StreamProc.h.


The documentation for this struct was generated from the following files: