From 1539754d5357df5eed7a88cc3f2955c87af9faae Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 29 Jan 2006 17:36:34 +0000 Subject: Added service::isSecuredConnection() and service::getConnectionInfos() to retrieve information about the connection. --- examples/example6.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/example6.cpp') diff --git a/examples/example6.cpp b/examples/example6.cpp index 344a4d87..7bd7a82c 100644 --- a/examples/example6.cpp +++ b/examples/example6.cpp @@ -516,6 +516,13 @@ static void connectStore() // Connect to the mail store st->connect(); + // Display some information about the connection + vmime::ref ci = st->getConnectionInfos(); + + std::cout << std::endl; + std::cout << "Connected to '" << ci->getHost() << "' (port " << ci->getPort() << ")" << std::endl; + std::cout << "Connection is " << (st->isSecuredConnection() ? "" : "NOT ") << "secured." << std::endl; + // Open the default folder in this store vmime::ref f = st->getDefaultFolder(); // vmime::ref f = st->getFolder(vmime::utility::path("a")); -- cgit v1.2.3