summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qpid/sys/Socket.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-04-29 20:15:18 +0000
committerGordon Sim <gsim@apache.org>2008-04-29 20:15:18 +0000
commit414f520f8b730c8437ed9c42628f07824a7e9dd1 (patch)
treefca4fab15a6fde4943288cc8efe8c7b06a2cd787 /qpid/cpp/src/qpid/sys/Socket.h
parent6915cc6324acacbbe7707e19573f0e35c5010e85 (diff)
downloadqpid-python-414f520f8b730c8437ed9c42628f07824a7e9dd1.tar.gz
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@652083 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qpid/sys/Socket.h')
-rw-r--r--qpid/cpp/src/qpid/sys/Socket.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/sys/Socket.h b/qpid/cpp/src/qpid/sys/Socket.h
index cab95654ad..20dc0f1ce3 100644
--- a/qpid/cpp/src/qpid/sys/Socket.h
+++ b/qpid/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*);
};
}}