summaryrefslogtreecommitdiff
path: root/php
diff options
context:
space:
mode:
Diffstat (limited to 'php')
-rw-r--r--php/src/IcePHP/Endpoint.cpp6
-rw-r--r--php/test/Ice/info/Client.php5
2 files changed, 11 insertions, 0 deletions
diff --git a/php/src/IcePHP/Endpoint.cpp b/php/src/IcePHP/Endpoint.cpp
index 39303b190be..654dfde2ee8 100644
--- a/php/src/IcePHP/Endpoint.cpp
+++ b/php/src/IcePHP/Endpoint.cpp
@@ -351,6 +351,10 @@ IcePHP::endpointInit(TSRMLS_D)
STRCAST(""), ZEND_ACC_PUBLIC TSRMLS_CC);
zend_declare_property_long(udpEndpointInfoClassEntry, STRCAST("mcastTtl"), sizeof("mcastTtl") - 1, 0,
ZEND_ACC_PUBLIC TSRMLS_CC);
+ zend_declare_property_long(udpEndpointInfoClassEntry, STRCAST("sndBufSize"), sizeof("sndBufSize") - 1, 0,
+ ZEND_ACC_PUBLIC TSRMLS_CC);
+ zend_declare_property_long(udpEndpointInfoClassEntry, STRCAST("rcvBufSize"), sizeof("rcvBufSize") - 1, 0,
+ ZEND_ACC_PUBLIC TSRMLS_CC);
//
// Define the WSEndpointInfo class.
@@ -439,6 +443,8 @@ IcePHP::createEndpointInfo(zval* zv, const Ice::EndpointInfoPtr& p TSRMLS_DC)
{
add_property_string(zv, STRCAST("mcastInterface"), const_cast<char*>(info->mcastInterface.c_str()), 1);
add_property_long(zv, STRCAST("mcastTtl"), static_cast<long>(info->mcastTtl));
+ add_property_long(zv, STRCAST("sndBufSize"), static_cast<long>(info->sndBufSize));
+ add_property_long(zv, STRCAST("rcvBufSize"), static_cast<long>(info->rcvBufSize));
}
}
else if(Ice::WSEndpointInfoPtr::dynamicCast(p))
diff --git a/php/test/Ice/info/Client.php b/php/test/Ice/info/Client.php
index 46c800c3b33..52425a505c8 100644
--- a/php/test/Ice/info/Client.php
+++ b/php/test/Ice/info/Client.php
@@ -44,6 +44,9 @@ function allTests($communicator)
$protocolVersionClass = $NS ? "Ice\\ProtocolVersion" : "Ice_ProtocolVersion";
$encodingVersionClass = $NS ? "Ice\\EncodingVersion" : "Ice_EncodingVersion";
+ $communicator->getProperties()->setProperty("Ice.UDP.SndSize", "1024");
+ $communicator->getProperties()->setProperty("Ice.UDP.RcvSize", "2048");
+
echo "testing proxy endpoint information... ";
flush();
{
@@ -83,6 +86,8 @@ function allTests($communicator)
test(!$udpEndpoint->secure());
test($udpEndpoint->datagram());
test($udpEndpoint->type() == $udpEndpointType);
+ test($udpEndpoint->sndBufSize == -1);
+ test($udpEndpoint->rcvBufSize == -1);
$opaqueEndpoint = $endps[2]->getInfo();
test($opaqueEndpoint);