Pipe.h

00001 // $Id: Pipe.h 21 2010-09-05 04:18:17Z cschwarz1 $
00002 
00003 #ifndef BASE_PIPE_H
00004 #define BASE_PIPE_H
00005 
00006 #include "File.h"
00007 
00008 namespace base {
00010 
00014     class PPBASE_EXPORT Pipe {
00015     public:
00017         enum {
00018             pipeInbound = 1,     
00019             pipeOutbound = 2,    
00020             pipeDuplex = 3,      
00021             pipeOverlapped = 4   
00022         };
00023 
00025         Pipe();
00026 
00028         ~Pipe();
00029 
00031         void close();
00032 
00034 
00037         void create(int mode);
00038 
00040 
00043         File *getLocalEnd();
00044 
00046 
00049         File *getRemoteEnd();
00050 
00051     private:
00052         File *_floc;   
00053         File *_frem;   
00054     };
00055 }
00056 
00057 #endif