From acc0dee435e1fa22e3b1e7cdfecf6913bf88988e Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 29 Apr 2008 20:15:18 +0000 Subject: QPID-974: allow the size of the queue of outgoing frames to be restricted QPID-544: tidy up configuration (ensuring desired settings are used correctly, allowing tcp socket options to be set etc) git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@652083 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/sys/Socket.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'cpp/src/qpid/sys/Socket.h') diff --git a/cpp/src/qpid/sys/Socket.h b/cpp/src/qpid/sys/Socket.h index cab95654ad..20dc0f1ce3 100644 --- a/cpp/src/qpid/sys/Socket.h +++ b/cpp/src/qpid/sys/Socket.h @@ -103,8 +103,16 @@ public: int read(void *buf, size_t count) const; int write(const void *buf, size_t count) const; + struct Configuration + { + virtual void configurePosixTcpSocket(int fd) const = 0; + virtual ~Configuration() {} + }; + + void configure(const Configuration&); + private: - Socket(IOHandlePrivate*); + Socket(IOHandlePrivate*); }; }} -- cgit v1.2.1