diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-08 16:12:12 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-08 16:12:12 +0000 |
commit | 3ee4d26b9d2a157f1b5b7702ec5ed3b2cb31bce0 (patch) | |
tree | 5e632b843fee70c4e1ce6f5a8dbc82eed06f8b3f /rb/src/IceRuby/Proxy.cpp | |
parent | Added ActivationTimedOut state (diff) | |
download | ice-3ee4d26b9d2a157f1b5b7702ec5ed3b2cb31bce0.tar.bz2 ice-3ee4d26b9d2a157f1b5b7702ec5ed3b2cb31bce0.tar.xz ice-3ee4d26b9d2a157f1b5b7702ec5ed3b2cb31bce0.zip |
Added ice_getCachedConnection
Diffstat (limited to 'rb/src/IceRuby/Proxy.cpp')
-rw-r--r-- | rb/src/IceRuby/Proxy.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rb/src/IceRuby/Proxy.cpp b/rb/src/IceRuby/Proxy.cpp index 6165d6a72f1..a7207ae21b3 100644 --- a/rb/src/IceRuby/Proxy.cpp +++ b/rb/src/IceRuby/Proxy.cpp @@ -945,6 +945,23 @@ IceRuby_ObjectPrx_ice_getConnection(VALUE self) extern "C" VALUE +IceRuby_ObjectPrx_ice_getCachedConnection(VALUE self) +{ + ICE_RUBY_TRY + { + Ice::ObjectPrx p = getProxy(self); + Ice::ConnectionPtr conn = p->ice_getCachedConnection(); + if(!NIL_P(conn)) + { + return createConnection(conn); + } + } + ICE_RUBY_CATCH + return Qnil; +} + +extern "C" +VALUE IceRuby_ObjectPrx_equals(VALUE self, VALUE other) { ICE_RUBY_TRY @@ -1337,6 +1354,7 @@ IceRuby::initProxy(VALUE iceModule) rb_define_method(_proxyClass, "ice_timeout", CAST_METHOD(IceRuby_ObjectPrx_ice_timeout), 1); rb_define_method(_proxyClass, "ice_connectionId", CAST_METHOD(IceRuby_ObjectPrx_ice_connectionId), 1); rb_define_method(_proxyClass, "ice_getConnection", CAST_METHOD(IceRuby_ObjectPrx_ice_getConnection), 0); + rb_define_method(_proxyClass, "ice_getCachedConnection", CAST_METHOD(IceRuby_ObjectPrx_ice_getCachedConnection), 0); rb_define_method(_proxyClass, "hash", CAST_METHOD(IceRuby_ObjectPrx_ice_getHash), 0); rb_define_method(_proxyClass, "to_s", CAST_METHOD(IceRuby_ObjectPrx_ice_toString), 0); |