30 #ifndef PT_SSL_StreamBuffer_H
31 #define PT_SSL_StreamBuffer_H
33 #include <Pt/Ssl/Api.h>
34 #include <Pt/Ssl/Context.h>
35 #include <Pt/StreamBuffer.h>
117 std::streamsize
import(std::streamsize maxImport = 0);
121 virtual std::streamsize showmanyc();
130 virtual int_type underflow();
133 virtual int_type overflow(int_type ch);
137 std::string _peerName;
138 std::size_t _ibufferSize;
140 std::size_t _obufferSize;
143 static const int _pbmax = 4;
150 #endif // PT_SSL_StreamBuffer_H
Core module.
Definition: Allocator.h:33
OpenMode
Open mode for ssl I/O.
Definition: Context.h:53
StreamBuffer(Context &ctx, std::ios &ios, OpenMode mode, std::size_t bufferSize=1024)
Construct an SSL stream buffer..
bool writeHandshake()
Writes a handshake message to the underlying stream.
void close()
Closes the stream buffer.
StreamBuffer(std::size_t bufferSize=1024)
Construct an SSL stream buffer.
virtual ~StreamBuffer()
Destructor.
bool isClosed() const
Returns true if the connection is closed.
bool shutdown()
Shutdown the SSL connection.
SSL stream buffer.
Definition: StreamBuffer.h:48
const char * currentCipher() const
Return the currently used cipher.
void open(Context &ctx, std::ios &ios, OpenMode mode)
Opens the stream buffer.
void setPeerName(const std::string &peerName)
Sets the expected peer name.
Buffer for input and output streams.
Definition: StreamBuffer.h:52
virtual std::streamsize showfull()
Returns the number of characters buffered for output.
bool isConnected() const
Returns true if connected to peer.
bool readHandshake(std::streamsize maxRead=0)
Reads handshake message from the underlying stream.
bool isShutdown() const
Returns true if the shutown notify has to be completed.
Represents a connection between a Signal/Delegate and a slot.
Definition: Connection.h:91
Context for SSL connections.
Definition: Context.h:80