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 /py/modules/IcePy/EndpointInfo.cpp | |
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 'py/modules/IcePy/EndpointInfo.cpp')
-rw-r--r-- | py/modules/IcePy/EndpointInfo.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/py/modules/IcePy/EndpointInfo.cpp b/py/modules/IcePy/EndpointInfo.cpp index f175fe85a3b..68c1dd1678c 100644 --- a/py/modules/IcePy/EndpointInfo.cpp +++ b/py/modules/IcePy/EndpointInfo.cpp @@ -198,6 +198,28 @@ udpEndpointInfoGetMcastTtl(EndpointInfoObject* self) extern "C" #endif static PyObject* +udpEndpointInfoGetSndBufSize(EndpointInfoObject* self) +{ + Ice::UDPEndpointInfoPtr info = Ice::UDPEndpointInfoPtr::dynamicCast(*self->endpointInfo); + assert(info); + return PyLong_FromLong(info->sndBufSize); +} + +#ifdef WIN32 +extern "C" +#endif +static PyObject* +udpEndpointInfoGetRcvBufSize(EndpointInfoObject* self) +{ + Ice::UDPEndpointInfoPtr info = Ice::UDPEndpointInfoPtr::dynamicCast(*self->endpointInfo); + assert(info); + return PyLong_FromLong(info->rcvBufSize); +} + +#ifdef WIN32 +extern "C" +#endif +static PyObject* opaqueEndpointInfoGetRawBytes(EndpointInfoObject* self) { Ice::OpaqueEndpointInfoPtr info = Ice::OpaqueEndpointInfoPtr::dynamicCast(*self->endpointInfo); @@ -259,6 +281,10 @@ static PyGetSetDef UDPEndpointInfoGetters[] = PyDoc_STR(STRCAST("multicast interface")), 0 }, { STRCAST("mcastTtl"), reinterpret_cast<getter>(udpEndpointInfoGetMcastTtl), 0, PyDoc_STR(STRCAST("multicast time-to-live")), 0 }, + { STRCAST("sndBufSize"), reinterpret_cast<getter>(udpEndpointInfoGetSndBufSize), 0, + PyDoc_STR(STRCAST("send buffer size")), 0 }, + { STRCAST("rcvBufSize"), reinterpret_cast<getter>(udpEndpointInfoGetRcvBufSize), 0, + PyDoc_STR(STRCAST("recieve buffer size")), 0 }, { 0, 0 } /* sentinel */ }; |