From bd47fd629bb2356df93af70b174a6a070f3a58cc Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 5 Aug 2008 17:03:16 +0000 Subject: * 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 --- cpp/src/qpid/sys/Socket.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (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 45a8bb588e..dd7ef9a96d 100644 --- a/cpp/src/qpid/sys/Socket.h +++ b/cpp/src/qpid/sys/Socket.h @@ -98,13 +98,7 @@ 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&); + void setTcpNoDelay(bool nodelay) const; private: Socket(IOHandlePrivate*); -- cgit v1.2.1