diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2014-08-07 12:18:42 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2014-08-07 12:18:42 -0230 |
commit | 232fa424a7339659b6ad2cd02fbfe89420457601 (patch) | |
tree | 978d9e9286c2915b771f8bea019276ab216eecc4 /rb/src/IceRuby/Endpoint.cpp | |
parent | Windows SSL SChannel implementation & OS X Secure Transport fixes. (diff) | |
download | ice-232fa424a7339659b6ad2cd02fbfe89420457601.tar.bz2 ice-232fa424a7339659b6ad2cd02fbfe89420457601.tar.xz ice-232fa424a7339659b6ad2cd02fbfe89420457601.zip |
ICE-5457 added ability to set source address for connections
Diffstat (limited to 'rb/src/IceRuby/Endpoint.cpp')
-rw-r--r-- | rb/src/IceRuby/Endpoint.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/rb/src/IceRuby/Endpoint.cpp b/rb/src/IceRuby/Endpoint.cpp index 58ebf672864..15f5241b9a3 100644 --- a/rb/src/IceRuby/Endpoint.cpp +++ b/rb/src/IceRuby/Endpoint.cpp @@ -136,6 +136,7 @@ IceRuby::createEndpointInfo(const Ice::EndpointInfoPtr& p) Ice::TCPEndpointInfoPtr tcp = Ice::TCPEndpointInfoPtr::dynamicCast(p); rb_ivar_set(info, rb_intern("@host"), createString(tcp->host)); rb_ivar_set(info, rb_intern("@port"), INT2FIX(tcp->port)); + rb_ivar_set(info, rb_intern("@sourceAddress"), createString(tcp->sourceAddress)); } else if(Ice::UDPEndpointInfoPtr::dynamicCast(p)) { @@ -144,6 +145,7 @@ IceRuby::createEndpointInfo(const Ice::EndpointInfoPtr& p) Ice::UDPEndpointInfoPtr udp = Ice::UDPEndpointInfoPtr::dynamicCast(p); rb_ivar_set(info, rb_intern("@host"), createString(udp->host)); rb_ivar_set(info, rb_intern("@port"), INT2FIX(udp->port)); + rb_ivar_set(info, rb_intern("@sourceAddress"), createString(udp->sourceAddress)); rb_ivar_set(info, rb_intern("@mcastInterface"), createString(udp->mcastInterface)); rb_ivar_set(info, rb_intern("@mcastTtl"), INT2FIX(udp->mcastTtl)); } @@ -164,6 +166,7 @@ IceRuby::createEndpointInfo(const Ice::EndpointInfoPtr& p) Ice::IPEndpointInfoPtr ip = Ice::IPEndpointInfoPtr::dynamicCast(p); rb_ivar_set(info, rb_intern("@host"), createString(ip->host)); rb_ivar_set(info, rb_intern("@port"), INT2FIX(ip->port)); + rb_ivar_set(info, rb_intern("@sourceAddress"), createString(ip->sourceAddress)); } else { @@ -271,6 +274,7 @@ IceRuby::initEndpoint(VALUE iceModule) // rb_define_attr(_ipEndpointInfoClass, "host", 1, 0); rb_define_attr(_ipEndpointInfoClass, "port", 1, 0); + rb_define_attr(_ipEndpointInfoClass, "sourceAddress", 1, 0); // // TCPEndpointInfo |