diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-01-07 10:16:13 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-01-07 10:16:13 -0330 |
commit | 25dc1ddfb828aa892afdf399c835c8a150a8cff3 (patch) | |
tree | 1c0ba31f16ad41aadcdccddbc4fc803396004709 /php | |
parent | ICE-6253 added tests to ensure Functional_TwowayCallback* used (diff) | |
download | ice-25dc1ddfb828aa892afdf399c835c8a150a8cff3.tar.bz2 ice-25dc1ddfb828aa892afdf399c835c8a150a8cff3.tar.xz ice-25dc1ddfb828aa892afdf399c835c8a150a8cff3.zip |
ICE-6082 added sndBufSize and rcvBufSize to UDPEndpointInfo
Diffstat (limited to 'php')
-rw-r--r-- | php/src/IcePHP/Endpoint.cpp | 6 | ||||
-rw-r--r-- | php/test/Ice/info/Client.php | 5 |
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); |