NIOPipeBootstrap

public final class NIOPipeBootstrap

A NIOPipeBootstrap is an easy way to bootstrap a PipeChannel which uses two (uni-directional) UNIX pipes and makes a Channel out of them.

Example bootstrapping a Channel using stdin and stdout:

let channel = try NIOPipeBootstrap(group: group)
                  .channelInitializer { channel in
                      channel.pipeline.addHandler(MyChannelHandler())
                  }
                  .withPipes(inputDescriptor: STDIN_FILENO, outputDescriptor: STDOUT_FILENO)