src/fifo.h
author Tero Marttila <terom@fixme.fi>
Tue, 28 Apr 2009 20:27:45 +0300
branchnew-transport
changeset 155 c59d3eaff0fb
parent 154 f4472119de3b
child 157 1e5674d0eec4
permissions -rw-r--r--
most of the new transport/sock code compiles, but things are still missing
#ifndef FIFO_H
#define FIFO_H

#include "transport.h"

/**
 * A read-only "socket" based on a FIFO, this provides nonblocking read operations by re-opening the FIFO on EOF.
 *
 * The transport will be ready for use right away, transport_callbacks::on_connect will never be called.
 *
 * @param transport_ptr returned transport
 * @param path the path to the filesystem fifo object
 * @param err returned error info
 */
err_t fifo_open_read (transport_t **transport_ptr, const char *path, error_t *err);


#endif