00001 #ifndef _SOLARIS_NAMED_PIPE_H_
00002 #define _SOLARIS_NAMED_PIPE_H_
00003
00004
00005
00006
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