this.type = Type.OUTPUT;
}
protected void openDuplex(int fd, FileDescriptor fileDescriptor) throws NoSuchFieldException, IllegalAccessException, IOException {
if (this.ipc) {
DuplexIPCChannel channel = new DuplexIPCChannel(this, process.getPosix(), fd);
//channel.pipeline().addLast("debug", new DebugHandler("ipc"));
this.channelFuture = channel.newSucceededFuture();
process.getEventLoop().getEventLoopGroup().register(channel);
} else {
FileInputStream in = new FileInputStream(fileDescriptor);
FileOutputStream out = new FileOutputStream(fileDescriptor);