diff options
author | Gordon Sim <gsim@apache.org> | 2008-08-05 17:03:16 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-08-05 17:03:16 +0000 |
commit | bd47fd629bb2356df93af70b174a6a070f3a58cc (patch) | |
tree | c92b2cc932fe806ce9e41521de9f4d01557ec2ba /cpp/src/qpid/client/ConnectionSettings.h | |
parent | 6bed4cf29dda54560af44d16143fa4b24b65245b (diff) | |
download | qpid-python-bd47fd629bb2356df93af70b174a6a070f3a58cc.tar.gz |
* revised approach for setting tcp-nodelay on client to avoid breaking platform abstractions
* added ability to set tcp-nodelay on server side of the socket also
Merged from r682785.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@682791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/client/ConnectionSettings.h')
-rw-r--r-- | cpp/src/qpid/client/ConnectionSettings.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/cpp/src/qpid/client/ConnectionSettings.h b/cpp/src/qpid/client/ConnectionSettings.h index a2b85c5134..5e93b3103e 100644 --- a/cpp/src/qpid/client/ConnectionSettings.h +++ b/cpp/src/qpid/client/ConnectionSettings.h @@ -25,26 +25,31 @@ #include "qpid/Options.h" #include "qpid/log/Options.h" #include "qpid/Url.h" -#include "qpid/sys/Socket.h" #include <iostream> #include <exception> namespace qpid { + +namespace sys { +class Socket; +} + namespace client { /** * Settings for a Connection. */ -struct ConnectionSettings : public sys::Socket::Configuration { +struct ConnectionSettings { ConnectionSettings(); virtual ~ConnectionSettings(); /** - * Applies any tcp specific options to the sockets file descriptor + * Allows socket to be configured; default only sets tcp-nodelay + * based on the flag set. Can be overridden. */ - virtual void configurePosixTcpSocket(int fd) const; + virtual void configureSocket(qpid::sys::Socket&) const; /** * The host (or ip address) to connect to (defaults to 'localhost'). |