summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/TcpTransceiver.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2007-01-31 05:20:18 +0000
committerMatthew Newhook <matthew@zeroc.com>2007-01-31 05:20:18 +0000
commitaee8b7cff90d42cd1151ec9911e490b0de553dd5 (patch)
tree75b49c8837bb98683d9451c5c9edc4427e22924c /cpp/src/Ice/TcpTransceiver.cpp
parentupdated README. (diff)
downloadice-aee8b7cff90d42cd1151ec9911e490b0de553dd5.tar.bz2
ice-aee8b7cff90d42cd1151ec9911e490b0de553dd5.tar.xz
ice-aee8b7cff90d42cd1151ec9911e490b0de553dd5.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1690,
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1711
Diffstat (limited to 'cpp/src/Ice/TcpTransceiver.cpp')
-rw-r--r--cpp/src/Ice/TcpTransceiver.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpp/src/Ice/TcpTransceiver.cpp b/cpp/src/Ice/TcpTransceiver.cpp
index fbada343127..4eb5f54fa02 100644
--- a/cpp/src/Ice/TcpTransceiver.cpp
+++ b/cpp/src/Ice/TcpTransceiver.cpp
@@ -343,6 +343,15 @@ IceInternal::TcpTransceiver::initialize(int)
{
}
+void
+IceInternal::TcpTransceiver::checkSendSize(const Buffer& buf, size_t messageSizeMax)
+{
+ if(buf.b.size() > messageSizeMax)
+ {
+ throw MemoryLimitException(__FILE__, __LINE__);
+ }
+}
+
IceInternal::TcpTransceiver::TcpTransceiver(const InstancePtr& instance, SOCKET fd) :
_traceLevels(instance->traceLevels()),
_logger(instance->initializationData().logger),