joyent/node — Issue #1940: Expose process.binding('pipe_wrap').Pipe
Author: baudehlo
Created: 2011-10-25 21:08:35+00:00
State: open

Since the "API" (in quotes because it was never exposed) for creating a socketpair/pipe in 0.6 is changing can we just expose it so that it can be used?

I use this in order to be able to talk to qmail-queue - you have to feed it message data over fd 0 and envelope data over fd 1. Using a pipe is the only way I can do this as far as I can tell.

in Node 0.4.x I do: process.binding('net').pipe(). It seems to be the same as: new process.binding('pipe_wrap').Pipe, correct?