src/fifo.h
author Tero Marttila <terom@fixme.fi>
Thu, 21 May 2009 16:57:00 +0300
changeset 211 b460d958a685
parent 157 1e5674d0eec4
permissions -rw-r--r--
fix lua_nexus_sleep to use lua_thread_yield_state
#ifndef FIFO_H
#define FIFO_H

#include "transport.h"

#include <event2/event.h>

/**
 * A read-only transport 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_info the setup info required to create the transport
 * @param transport_ptr returned transport
 * @param path the path to the filesystem fifo object
 * @param err returned error info
 */
err_t fifo_open_read (struct transport_info *transport_info, transport_t **transport_ptr, struct event_base *ev_base,
        const char *path, error_t *err);


#endif