00001 #ifndef QPID_CLIENT_CONNECTIONSETTINGS_H
00002 #define QPID_CLIENT_CONNECTIONSETTINGS_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include "qpid/Options.h"
00026 #include "qpid/log/Options.h"
00027 #include "qpid/Url.h"
00028 #include "qpid/sys/Socket.h"
00029
00030 #include <iostream>
00031 #include <exception>
00032
00033 namespace qpid {
00034 namespace client {
00035
00040 struct ConnectionSettings : qpid::Options, qpid::sys::Socket::Configuration
00041 {
00042 ConnectionSettings();
00043 virtual ~ConnectionSettings();
00044
00048 virtual void configurePosixTcpSocket(int fd) const;
00049
00054 void parse(int argc, char** argv);
00055
00056 std::string host;
00057 uint16_t port;
00058 std::string virtualhost;
00059 std::string clientid;
00060 std::string username;
00061 std::string password;
00062 std::string mechanism;
00063 std::string locale;
00064 uint16_t heartbeat;
00065 uint16_t maxChannels;
00066 uint16_t maxFrameSize;
00067 uint bounds;
00068 bool tcpNoDelay;
00069
00070 log::Options log;
00071 };
00072
00073 }}
00074
00075 #endif