pipe.hpp

1
2
3
4
5
6
7
#pragma once


#include <felspar/io/posix.hpp>


namespace felspar::io {

A pipe has a read and a write end

On true POSIX systems this will create a real pipe, but on Windows it will emulate a pipe using a pair of sockets.

15
16
17
18
19
20
    struct pipe {
        posix::fd read, write;
    };


}