00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef BIOSTREAMPTR_H
00016 #define BIOSTREAMPTR_H
00017
00018 #include "pandabase.h"
00019
00020
00021 #ifdef HAVE_OPENSSL
00022 #define OPENSSL_NO_KRB5
00023
00024 #include "bioStream.h"
00025 #include "referenceCount.h"
00026 #include "openSSLWrapper.h"
00027 #include "openssl/ssl.h"
00028
00029
00030
00031
00032
00033
00034 class EXPCL_PANDAEXPRESS BioStreamPtr : public ReferenceCount {
00035 public:
00036 INLINE BioStreamPtr(BioStream *stream);
00037 virtual ~BioStreamPtr();
00038
00039 INLINE BioStream &operator *() const;
00040 INLINE BioStream *operator -> () const;
00041 INLINE operator BioStream * () const;
00042
00043 INLINE void set_stream(BioStream *stream);
00044 INLINE BioStream *get_stream() const;
00045
00046 private:
00047 BioStream *_stream;
00048 };
00049
00050 #include "bioStreamPtr.I"
00051
00052 #endif // HAVE_OPENSSL
00053
00054
00055 #endif
00056
00057