Annotation of truecrypt/platform/unix/pipe.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
                      3: 
                      4:  Governed by the TrueCrypt License 2.4 the full text of which is contained
                      5:  in the file License.txt included in TrueCrypt binary and source code
                      6:  distribution packages.
                      7: */
                      8: 
                      9: #ifndef TC_HEADER_Platform_Unix_Pipe
                     10: #define TC_HEADER_Platform_Unix_Pipe
                     11: 
                     12: #include "Platform/PlatformBase.h"
                     13: 
                     14: namespace TrueCrypt
                     15: {
                     16:        class Pipe
                     17:        {
                     18:        public:
                     19:                Pipe ();
                     20:                virtual ~Pipe ();
                     21: 
                     22:                void Close ();
                     23:                int GetReadFD ();
                     24:                int GetWriteFD ();
                     25:                int PeekReadFD () const { return ReadFileDescriptor; }
                     26:                int PeekWriteFD () const { return WriteFileDescriptor; }
                     27: 
                     28:        protected:
                     29:                int ReadFileDescriptor;
                     30:                int WriteFileDescriptor;
                     31: 
                     32:        private:
                     33:                Pipe (const Pipe &);
                     34:                Pipe &operator= (const Pipe &);
                     35:        };
                     36: }
                     37: 
                     38: #endif // TC_HEADER_Platform_Unix_Pipe

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.