Function gnunet_sys::GNUNET_DISK_pipe_from_fd [−][src]
pub unsafe extern "C" fn GNUNET_DISK_pipe_from_fd(
pf: GNUNET_DISK_PipeFlags,
fd: *mut c_int
) -> *mut GNUNET_DISK_PipeHandle
Creates a pipe object from a couple of file descriptors. Useful for wrapping existing pipe FDs.
@param pf how to configure the pipe @param fd an array of two fd values. One of them may be -1 for read-only or write-only pipes @return handle to the new pipe, NULL on error