Library: Net
Package: Mail
Header: Poco/Net/MailStream.h
The sole purpose of this stream buffer is to replace a "\r\n.\r\n" character sequence with a "\r\n..\r\n" sequence for output streams and vice-versa for input streams.
This is used when sending mail messages to SMTP servers, or receiving mail messages from POP servers.
See RFC 2181 (Simple Mail Transfer Protocol) and RFC 1939 (Post Office Protocol - Version 3) for more information.
Direct Base Classes: Poco::UnbufferedStreamBuf
All Base Classes: Poco::UnbufferedStreamBuf
Member Functions: close, readFromDevice, readOne, writeToDevice
MailStreamBuf(
std::istream & istr
);
Creates the MailStreamBuf and connects it to the given input stream.
MailStreamBuf(
std::ostream & ostr
);
Creates the MailStreamBuf and connects it to the given output stream.
~MailStreamBuf();
Destroys the MailStreamBuf.
void close();
Writes the terminating period, followed by CR-LF.
int readFromDevice();
int readOne();
int writeToDevice(
char c
);