Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

NamedPipe.h

Go to the documentation of this file.
00001 #ifndef _SOLARIS_NAMED_PIPE_H_
00002 #define _SOLARIS_NAMED_PIPE_H_
00003 
00004 
00005 /*
00006  * Unix implementation of a named pipe.
00007  */
00008 class NamedPipe {
00009    int _pipe;
00010    short _is_server;
00011    char _pname[300];
00012 
00013    void buildFileName(const char* name, char* buffer);
00014 public:
00015    NamedPipe();
00016    ~NamedPipe();
00017 
00018    int create(const char* name, int mode, long timeout = -1);
00019    int connect(const char* name, int mode, long timeout = -1);
00020    long read(char* buffer, long size);
00021    long write(char* buffer, long size);
00022    void flush();
00023    void close();
00024 };
00025 
00026 #endif

Generated on Mon Oct 7 09:33:29 2002 for Gaia by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001