Public Member Functions

Barry::FifoServer Class Reference

Accepts a FifoArgs struct, and creates the necessary fifo for transfer. More...

#include <fifoargs.h>

Collaboration diagram for Barry::FifoServer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

bool Serve (int timeout_sec)
 Serves the given arguments through the fifo.
void Cleanup ()
 Deletes the fifo. Called automatically by destructor.

Detailed Description

Accepts a FifoArgs struct, and creates the necessary fifo for transfer.

To use, create the object, then execute the program (eg. pppob), and then call Serve() with a given timeout in seconds.

This class deletes the fifo in the destructor, or explicitly, with the Cleanup() call.

Only arguments that are valid are sent.

Definition at line 71 of file fifoargs.h.


Member Function Documentation

void Barry::FifoServer::Cleanup (  ) 

Deletes the fifo. Called automatically by destructor.

Definition at line 165 of file fifoargs.cc.

bool Barry::FifoServer::Serve ( int  timeout_sec  ) 

Serves the given arguments through the fifo.

Returns false on timeout.

Definition at line 113 of file fifoargs.cc.


The documentation for this class was generated from the following files: