summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-05-27 14:57:33 +0000
committerGordon Sim <gsim@apache.org>2008-05-27 14:57:33 +0000
commite208b1bc12c51857b24c7edf6f9270ab6d9e600c (patch)
treea63507103fd136892428c441e6ae87f2fbc1af68 /cpp/src
parent2713155352d200a0c7fdcdda07ac1154776f4b93 (diff)
downloadqpid-python-e208b1bc12c51857b24c7edf6f9270ab6d9e600c.tar.gz
Added some comments to the various connection settings.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@660546 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/client/ConnectionSettings.h49
1 files changed, 48 insertions, 1 deletions
diff --git a/cpp/src/qpid/client/ConnectionSettings.h b/cpp/src/qpid/client/ConnectionSettings.h
index 47b54e8ee5..8db5c0578c 100644
--- a/cpp/src/qpid/client/ConnectionSettings.h
+++ b/cpp/src/qpid/client/ConnectionSettings.h
@@ -35,7 +35,7 @@ namespace client {
/**
* Used to hold seetings for a connection (and parse these from
- * command line oprions etc as a convenience).
+ * command line options etc if desired).
*/
struct ConnectionSettings : qpid::Options, qpid::sys::Socket::Configuration
{
@@ -53,20 +53,67 @@ struct ConnectionSettings : qpid::Options, qpid::sys::Socket::Configuration
*/
void parse(int argc, char** argv);
+ /**
+ * The host (or ip address) to connect to (defaults to 'localhost').
+ */
std::string host;
+ /**
+ * The port to connect to (defaults to 5672).
+ */
uint16_t port;
+ /**
+ * Allows an AMQP 'virtual host' to be specified for the
+ * connection.
+ */
std::string virtualhost;
+
std::string clientid;
+ /**
+ * The username to use when authenticating the connection.
+ */
std::string username;
+ /**
+ * The password to use when authenticating the connection.
+ */
std::string password;
+ /**
+ * The SASL mechanism to use when authenticating the connection;
+ * the options are currently PLAIN or ANONYMOUS.
+ */
std::string mechanism;
+ /**
+ * Allows a locale to be specified for the connection.
+ */
std::string locale;
+ /**
+ * Allows a heartbeat frequency to be specified (this feature is
+ * not yet implemented).
+ */
uint16_t heartbeat;
+ /**
+ * The maximum number of channels that the client will request for
+ * use on this connection.
+ */
uint16_t maxChannels;
+ /**
+ * The maximum frame size that the client will request for this
+ * connection.
+ */
uint16_t maxFrameSize;
+ /**
+ * Allows the size of outgoing frames to be limited. The value
+ * should be a mutliple of the maximum buffer size in use (which
+ * is in turn set through the maxFrameSize setting above).
+ */
uint bounds;
+ /**
+ * If true, TCP_NODELAY will be set for the connection.
+ */
bool tcpNoDelay;
+ /**
+ * Logging settings to use.
+ */
log::Options log;
};